pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:31:   test_eq(0x8000000000000000-0x8000000000000000, 0);   test_eq(0xf000000000000000-0xf000000000000000, 0);   test_eq(0x8000000000000001-0x8000000000000000, 1);   test_eq(0x8000000000000000-0x8000000000000001,-1);   test_eq(-9223372036854775808*-1, -9223372036854775808/-1);   test_true([[1.0e-40]]);   test_eq([[#"foo   bar"]],[["foo\nbar"]]);   test_eq([[#"foo\   bar"]],[["foobar"]]); + test_eq([[#(foo + bar#)]],[["foo\nbar"]]); + test_eq([[#(foo\ + bar#)]],[["foo\\\nbar"]]); + test_eq([[#[foo + bar#] ]],[["foo\nbar"]]); + test_eq([[#[foo\ + bar#] ]],[["foo\\\nbar"]]); + test_eq([[#{foo + bar#}]],[["foo\nbar"]]); + test_eq([[#{foo\ + bar#}]],[["foo\\\nbar"]]);   test_true([[stringp(#string "Makefile")]]);   test_any([[class Bar { array(int) foo = ({}); };    class Foo { inherit Bar; array(int) foo = ({1}); };    return sizeof(Foo()->foo);]],1);      test_eq([["(" + 0x7fffffff + ")"]], "(2147483647)")   test_eq([["(" + -0x80000000 + ")"]], "(-2147483648)")   test_eq([["(" + 0x7fffffffffffffff + ")"]], "(9223372036854775807)")   test_eq([["(" + -0x8000000000000000 + ")"]], "(-9223372036854775808)")   test_eq([["(" + Int.NATIVE_MAX + ")"]], [[sprintf ("(%d)", Int.NATIVE_MAX)]])