summaryrefslogtreecommitdiff
path: root/spec/unit/pops/evaluator/arithmetic_ops_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2013-12-05(#22363) Add test that shows negaice shift reverses directionHenrik Lindberg1-0/+2
When shifting a negative count the direction of the shift is changed. This adds tests that shows this.
2013-12-05(#22363) Remove ablity to apply operator % to floatsHenrik Lindberg1-2/+2
The result is almost always surprising when trying modulo operator on floats. It only works in a meaningful way if the floating point numbers are integral in the first place. Rounding errors makes results very confusing. An error is now issued instead that % is not applicable to floats.
2013-12-05(#22363) Add parse / validate / evaluate tests, fix evaluator issuesHenrik Lindberg1-2/+2
This adds a comprehensive parse/validate/evaluate test for the future evaluator. Several parsing and evaluation issues were found and corrected.
2013-12-05(#22363) Add "future evaluator"Henrik Lindberg1-0/+75
This commit contains the initial work on a new evaluator. It operates on the output of the future parser.