pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:8597:
test_eq([[(string) ({0,1,2})]], "\0\1\2") test_eq([[(string) ({'z', 0xff, '.'})]], "z\xff.") test_eq([[(string) ({'z', 0x100, '.'})]], "z\x100.") test_eq([[(string) ({'z', 0xffff, '.'})]], "z\xffff.") test_eq([[(string) ({'z', 0x10000, '.'})]], "z\x10000.") test_eq([[(string) ({'z', -1, '.'})]], "z\xffffffff.") test_eq([[(string) ({'z', 0x7fffffff, '.'})]], "z\x7fffffff.") test_eval_error([[(string) ({0x80000000})]]) test_eq([[(string) ({'z', -0x80000000, '.'})]], "z\x80000000.") test_eval_error([[(string) ({-0x80000001})]])
+
test_eval_error([[(int)class { mixed cast() { return UNDEFINED; } }();]])
+
test_eval_error([[(string)class { mixed cast() { return UNDEFINED; } }();]])
+
test_eval_error([[(mapping)class { mixed cast() { return UNDEFINED; } }();]])
// testing @ test_equal(({1,2,3}),lambda(mixed ... x) { return x; }(@a())) test_equal("foo"/"",lambda(mixed ... x) { return x; }(@a())) test_any([[array a=({1,2,3}); return lambda(mixed ... x) { return x; }(@a) !=a]],1) test_any([[array z=({lambda(mixed x){return x;},17});return `()(@z);]],17) // testing += test_any(int a=1; a+=10; return a,11) test_any_equal(mapping m=([]); m->x+=([]); return m->x, ([]))