spec/rley/parser/dotted_item_spec.rb in rley-0.0.15 vs spec/rley/parser/dotted_item_spec.rb in rley-0.0.16
- old
+ new
@@ -92,9 +92,14 @@
end
it 'should know the symbol after the dot' do
expect(subject.next_symbol).to eq(t_b)
end
+
+ it 'should give its text representation' do
+ expectation = "sentence => A . B C"
+ expect(subject.to_s).to eq(expectation)
+ end
end
end # describe
end # module
end # module