From 65a8ebede238e88be222167ff54c6b4b1af03375 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 14:02:01 +0000 Subject: Added another test. --- t/test-parser.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 't') 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 -- cgit v1.2.1