# File test.rb, line 781 def test_tag_style assert(@parser,'HTGlossary parser was not created') tmpl = @parser.parse('<TMPL_VAR foo>') tmpl['foo'] = 'bar' assert_equal('bar',tmpl.output,'A TMPL_VAR command by itself') tmpl = @parser.parse('<TMPL_IF foo>foo<TMPL_ELSE>bar</TMPL_IF>') tmpl['foo'] = true assert_equal('foo',tmpl.output,'TMPL_IF does not work in comment style') tmpl['foo'] = false assert_equal('bar',tmpl.output,'TMPL_IF does not work in comment style') end