test/choice_test.rb in citrus-1.7.0 vs test/choice_test.rb in citrus-1.8.0

- old
+ new

@@ -13,38 +13,38 @@ match = rule.match(input('')) assert_equal(nil, match) match = rule.match(input('a')) assert(match) - assert_equal('a', match.text) + assert_equal('a', match) assert_equal(1, match.length) end def test_match_multi rule = Choice.new(%w<a b>) match = rule.match(input('ab')) assert(match) - assert_equal('a', match.text) + assert_equal('a', match) assert_equal(1, match.length) match = rule.match(input('ba')) assert(match) - assert_equal('b', match.text) + assert_equal('b', match) assert_equal(1, match.length) end def test_match_embed rule = Choice.new([ /\d+/, Choice.new(%w<+ ->) ]) match = rule.match(input('1+')) assert(match) - assert_equal('1', match.text) + assert_equal('1', match) assert_equal(1, match.length) match = rule.match(input('+1')) assert(match) - assert_equal('+', match.text) + assert_equal('+', match) assert_equal(1, match.length) end def test_to_s rule = Choice.new(%w<a b>)