test/lexer/test_conditionals.rb in regexp_parser-0.3.5 vs test/lexer/test_conditionals.rb in regexp_parser-0.3.6

- old
+ new

@@ -29,11 +29,11 @@ def test_lexer_conditional_mixed_nesting regexp = /((?<A>a)(?<B>(?(<A>)b|((?(<B>)[e-g]|[h-j])))))/ tokens = RL.lex(regexp) - expected = [ + [ [ 0, :group, :capture, '(', 0, 1, 0, 0, 0], [ 1, :group, :named, '(?<A>', 1, 6, 1, 0, 0], [ 5, :conditional, :open, '(?', 13, 15, 2, 0, 0], [ 6, :conditional, :condition, '(<A>)', 15, 20, 2, 0, 1], @@ -68,10 +68,10 @@ def test_lexer_conditional_deep_nesting regexp = /(a(b(c)))(?(1)(?(2)(?(3)d|e))|(?(3)(?(2)f|g)|(?(1)f|g)))/ tokens = RL.lex(regexp) - expected = [ + [ [ 9, :conditional, :open, '(?', 9, 11, 0, 0, 0], [10, :conditional, :condition, '(1)', 11, 14, 0, 0, 1], [11, :conditional, :open, '(?', 14, 16, 0, 0, 1], [12, :conditional, :condition, '(2)', 16, 19, 0, 0, 2],