# File tests/streamingparsertester.rb, line 92 def test_attr_with_amp xml = '<variable name="$&">' h = {'name' => "\%code%quot;} tag = NQXML::Tag.new('variable', h, false, xml) t = NQXML::Tokenizer.new(xml) i = 0 t.each { | e | assert_equal(tag, e) i += 1 } assert_equal(1, i) assert(t.eof?) end