spec/rley/formatter/bracket_notation_spec.rb in rley-0.5.05 vs spec/rley/formatter/bracket_notation_spec.rb in rley-0.5.06

- old
+ new

@@ -1,10 +1,10 @@ require_relative '../../spec_helper' require 'stringio' require_relative '../support/grammar_abc_helper' -require_relative '../../../lib/rley/tokens/token' +require_relative '../../../lib/rley/lexical/token' require_relative '../../../lib/rley/parser/gfg_earley_parser' require_relative '../../../lib/rley/ptree/parse_tree' require_relative '../../../lib/rley/parse_tree_visitor' # Load the class under test require_relative '../../../lib/rley/formatter/bracket_notation' @@ -28,14 +28,14 @@ # Helper method that mimicks the output of a tokenizer # for the language specified by gramma_abc let(:grm_abc_tokens1) do [ - Tokens::Token.new('a', a_), - Tokens::Token.new('a', a_), - Tokens::Token.new('b', b_), - Tokens::Token.new('c', c_), - Tokens::Token.new('c', c_) + Lexical::Token.new('a', a_), + Lexical::Token.new('a', a_), + Lexical::Token.new('b', b_), + Lexical::Token.new('c', c_), + Lexical::Token.new('c', c_) ] end # Factory method that builds a sample parse tree. # Generated tree has the following structure: