Add test for String#get_make_var

This commit is contained in:
Jack Nagel 2013-02-15 00:39:22 -06:00
parent b8b014036e
commit 866b3cf6a8

View File

@ -57,4 +57,10 @@ class InreplaceTest < Test::Unit::TestCase
s1.remove_make_var! ["FLAG", "FLAG2"] s1.remove_make_var! ["FLAG", "FLAG2"]
assert_equal "OTHER=def\nOTHER2=def", s1 assert_equal "OTHER=def\nOTHER2=def", s1
end end
def test_get_make_var
s = "CFLAGS = -Wall -O2\nLDFLAGS = -lcrypto -lssl"
s.extend(StringInreplaceExtension)
assert_equal "-Wall -O2", s.get_make_var("CFLAGS")
end
end end