# HG changeset patch # User Matti Hamalainen # Date 1366174050 -10800 # Node ID 048df6a4b26d57090a4d75168eb6696b52800b74 # Parent 4eb5a0d72397609709811a163b70671168016329 Add tests. diff -r 4eb5a0d72397 -r 048df6a4b26d tests/testeval.sh --- a/tests/testeval.sh Wed Apr 17 07:47:21 2013 +0300 +++ b/tests/testeval.sh Wed Apr 17 07:47:30 2013 +0300 @@ -24,6 +24,10 @@ 9+5&(3 + 7) (5*(7&3) + 1) 123045 >> 1 & 60 +~60 +3 + ~5 +-~128 +5-~127 " | while read f; do if test "x$f" != "x"; then printf "#include \nint main(int argc, char *argv[])\n{\n (void) argc; (void) argv;\n printf(\"%%1.5f\\\\n\", (double) (%s));\n return 0;\n}\n" "$f" > "$CTEST.c"