spec/evaluator_spec.rb in dentaku-0.2.8 vs spec/evaluator_spec.rb in dentaku-0.2.9

- old
+ new

@@ -55,10 +55,12 @@ end end describe 'functions' do it 'should evaluate function' do - evaluator.evaluate(token_stream(:round, :open, 5, :divide, 3.0, :close)).should eq 2 + evaluator.evaluate(token_stream(:round, :open, 5, :divide, 3.0, :close)).should eq 2 + evaluator.evaluate(token_stream(:roundup, :open, 5, :divide, 1.2, :close)).should eq 5 + evaluator.evaluate(token_stream(:rounddown, :open, 5, :divide, 1.2, :close)).should eq 4 end end describe 'logic' do it 'should evaluate conditional' do