spec/kl/reader_spec.rb in shen-ruby-0.1.0 vs spec/kl/reader_spec.rb in shen-ruby-0.2.0

- old
+ new

@@ -20,9 +20,15 @@ list.should == Kl::Cons.list([1, Kl::Cons.list([2, Kl::Cons.list([3]), Kl::EmptyList.instance])]) end + + it 'raises an error on unterminated lists' do + expect { + reader('(1').next + }.to raise_error(Kl::Error, 'Unterminated list') + end end describe 'Reading booleans' do it 'reads true as true' do reader('true').next.should == true