spec/rley/parser/parsing_spec.rb in rley-0.1.08 vs spec/rley/parser/parsing_spec.rb in rley-0.1.09

- old
+ new

@@ -11,11 +11,10 @@ require_relative '../../../lib/rley/parser/parsing' module Rley # Open this namespace to avoid module qualifier prefixes module Parser # Open this namespace to avoid module qualifier prefixes describe Parsing do - # Grammar 1: A very simple language # S ::= A. # A ::= "a" A "c". # A ::= "b". let(:nt_S) { Syntax::NonTerminal.new('S') } @@ -45,11 +44,10 @@ # Default instantiation rule subject { Parsing.new(start_dotted_rule, grm1_tokens) } context 'Initialization:' do - it 'should be created with list of tokens and start dotted rule' do start_rule = start_dotted_rule tokens = grm1_tokens expect { Parsing.new(start_rule, tokens) }.not_to raise_error end @@ -59,10 +57,9 @@ end it 'should know its chart object' do expect(subject.chart).to be_kind_of(Chart) end - end # context context 'Parsing:' do it 'should push a state to a given chart entry' do expect(subject.chart[1]).to be_empty