Add test for String#get_make_var
This commit is contained in:
parent
b8b014036e
commit
866b3cf6a8
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user