spec/rley/formatter/bracket_notation_spec.rb in rley-0.6.09 vs spec/rley/formatter/bracket_notation_spec.rb in rley-0.7.00

- old
+ new

@@ -28,10 +28,11 @@ let(:c_) { grammar_abc.name2symbol['c'] } # Helper method that mimicks the output of a tokenizer # for the language specified by grammar_abc let(:grm_abc_tokens1) do - %w[a a b c c].map { |ch| Lexical::Token.new(ch, ch) } + pos = Lexical::Position.new(1, 2) # Dummy position + %w[a a b c c].map { |ch| Lexical::Token.new(ch, ch, pos) } end # Factory method that builds a sample parse tree. # Generated tree has the following structure: # S[0,5]