pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:9538:   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 { protected mixed cast() { return UNDEFINED; } }();]])   test_eval_error([[(string)class { protected mixed cast() { return UNDEFINED; } }();]]) - test_eval_error([[(mapping)class { protected mixed cast() { return UNDEFINED; } }();]]) + dnl There is a default rule for casting objects to mapping. + test_equal([[(mapping)class { protected mixed cast() { return UNDEFINED; } }();]], ([])) + test_eval_error([[(mapping)class { protected mixed cast() { error("Cast\n"); } }();]])      test_any([[    // Cast to subtyped object.    class A(int val) {    int next() { return ++val; }    }    return ((object(A))17)->next();   ]], 18)      // testing @