summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 14:02:01 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 14:02:01 +0000
commitec10f2d9153a10bb433a20ba66176107af1ebc85 (patch)
tree957345ea35e0f33a3f97c1d44e69ecb1dd88d63e /t
parent0d57b88dafd92e12c2d8a7a0061132e5f674ceed (diff)
Added another test.
Diffstat (limited to 't')
-rwxr-xr-xt/test-parser.rb11
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