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 | ec10f2d9153a10bb433a20ba66176107af1ebc85 (patch) | |
tree | 957345ea35e0f33a3f97c1d44e69ecb1dd88d63e /t/test-parser.rb | |
parent | 0d57b88dafd92e12c2d8a7a0061132e5f674ceed (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 |