pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-31
1999-10-31 14:58:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>
cb5d8e6ce1c26aeab813a7b8e71bd6d86dce5002 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added bignum test for +=.
Rev: src/testsuite.in:1.216
1:
-
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:
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) ]])