diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testsuite.at | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 587c3a3..897b4f4 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -44,6 +44,13 @@ m4_define([TE_MODIFIER], [m4_format([%c], 7)]) AT_BANNER([Language features]) +AT_SETUP([Number constants]) +TE_CHECK([[23:=]], 0, [23], ignore) +TE_CHECK([[1 2= =]], 0, ignore, ignore) +TE_CHECK([[033-27"N(0/0)']], 0, ignore, ignore) +TE_CHECK([[@0ff-255"N(0/0)']], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Number stack]) TE_CHECK([[2%a,%a - 3"N(0/0)' $]], 0, ignore, ignore) # It's not quite clear what would be the best semantics for comma: @@ -66,6 +73,8 @@ AT_CLEANUP AT_SETUP([Radix]) TE_CHECK([[0^R]], 1, ignore, ignore) TE_CHECK([[0U.^R]], 1, ignore, ignore) +# non-binary digits: +TE_CHECK([[2^R 23=]], 1, ignore, ignore) TE_CHECK([[23 (2^R)\^D .-5"N(0/0)']], 0, ignore, ignore) AT_CLEANUP |
