Skip to content
Snippets Groups Projects
Commit cb5d8e6c authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added bignum test for +=.

Rev: src/testsuite.in:1.216
parent 86363c39
No related branches found
No related tags found
No related merge requests found
test_true([["$Id: testsuite.in,v 1.215 1999/10/30 23:23:59 hubbe Exp $"]])
test_true([["$Id: testsuite.in,v 1.216 1999/10/31 14:58:27 grubba Exp $"]])
cond([[all_constants()->_verify_internals]],
[[
......@@ -1406,6 +1406,10 @@ cond([[ sizeof( cpp("__AUTO_BIGNUM__")/"__AUTO_BIGNUM__" ) == 1 ]],
test_eq("-2147483648", [[ (string)((-0x80000001) + 1) ]])
test_false([[ objectp((-0x80000001) + 1) ]])
// - Add-eq.
test_eq([[ lambda() { int a=0x100000000; int b = a; a += 1; return b; }() ]],
[[ 0x100000000 ]])
// - Sub.
test_eq("-2147483648", [[ (string)(-0x7fffffff - 1) ]])
test_eq("-2147483649", [[ (string)(-0x80000000 - 1) ]])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment