diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 14:02:01 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 14:02:01 +0000 |
commit | 65a8ebede238e88be222167ff54c6b4b1af03375 (patch) | |
tree | 957345ea35e0f33a3f97c1d44e69ecb1dd88d63e /t/test-parser.rb | |
parent | 6507c5e16c33c1289f20c6d4acb1a9d4c46258ae (diff) |
Added another test.
Diffstat (limited to 't/test-parser.rb')
-rwxr-xr-x | t/test-parser.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/test-parser.rb b/t/test-parser.rb index 35ed482..e92c5e8 100755 --- a/t/test-parser.rb +++ b/t/test-parser.rb @@ -266,9 +266,20 @@ class TestParser < Test::Unit::TestCase # Test that we got a suitable value. # values = parser.get_macro_targets( "FRONTLINESTAGING2" ) + assert(values.class.to_s == "Array" ) + + # + # Parse another line + # + parser.parse_line( "SWML_HOSTS is 212.110.191.9.") + macros = parser.macros + assert( macros.size() == 2 ) + values = parser.get_macro_targets( "SWML_HOSTS" ) assert(values.class.to_s == "Array" ) + + end |