pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:8215:   test_true(a?1:0) // a is the test function   test_true(0.0?1:0)   test_true(([])?1:0)   test_true(({})?1:0)   test_true((<>)?1:0)   test_true(object_program(this_object())?1:0)   test_eq(1 ? "a" : 1 ? "b" : 1, "a")   test_eq(0 ? "a" : 1 ? "b" : 1 ? "c" : 1, "b")   test_eq(0 ? "a" : 0 ? "b" : 1 ? "c" : 1, "c")    + // testing overflow checks + test_eq(-1 - 0x7fffffff, -0x80000000) + test_eq(Int.NATIVE_MIN % -1, 0) + test_eq(Int.NATIVE_MAX % Int.NATIVE_MIN, -1) +    // testing indexing   test_eq("foo"[0],'f')   test_eq("foo"[1],'o')   test_eq("foo"[2],'o')   test_eq("foo"[-1],'o')   test_eq("foo"[-2],'o')   test_eq("foo"[-3],'f')      test_eq("f\777\777"[0],'f')   test_eq("f\777\777"[1],'\777')