spec/dentaku_spec.rb in dentaku-3.2.0 vs spec/dentaku_spec.rb in dentaku-3.2.1
- old
+ new
@@ -20,10 +20,10 @@
expect(Dentaku('40 + n', 'n' => 2)).to eql(42)
end
it 'raises a parse error for bad logic expressions' do
expect {
- Dentaku('true AND')
+ Dentaku!('true AND')
}.to raise_error(Dentaku::ParseError)
end
it 'evaluates with class-level shortcut functions' do
expect(Dentaku.evaluate('2+2')).to eq(4)