math.parser: add some tests for errors.

db4
John Benediktsson 2012-06-06 15:14:52 -07:00
parent 3967b19aa5
commit 437b1f8785
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ unit-test
[ 1 1 >base ] must-fail
[ 1 0 >base ] must-fail
[ 1 -1 >base ] must-fail
[ 2+1/2 -1 >base ] [ invalid-radix? ] must-fail-with
[ 123.456 8 >base ] [ invalid-base? ] must-fail-with
[ 123.456 2 >base ] [ invalid-base? ] must-fail-with
[ "0/0." ] [ 0.0 0.0 / number>string ] unit-test