diff options
Diffstat (limited to 't')
-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 |