pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.707 2004/03/12 11:37:21 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.708 2004/03/12 18:29:29 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])   test_compile_any([[#pike 7.4]])   test_compile_any([[#pike 7.0]])   test_compile_any([[#pike 0.6]])      cond([[all_constants()->_verify_internals]],   [[    test_do(_verify_internals())
pike.git/src/testsuite.in:20:   test_eq("\d32","\x20");   test_eq('Å',"Å"[0]);   test_eq('\7777',"\7777"[0]);   test_eq('\77777777',"\77777777"[0]);   test_eq("\x10000","\x10000");   test_eq(0x80000000-0x80000000, 0);   test_eq(0xf0000000-0xf0000000, 0);   test_eq(0x80000001-0x80000000, 1);   test_eq(0x80000000-0x80000001,-1);   test_eq(-2147483648*-1, -2147483648/-1); + cond([[ 0x8000000000000000 ]], + [[    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_true([[stringp(#string "Makefile")]]);   test_any([[class Bar { array(int) foo = ({}); };    class Foo { inherit Bar; array(int) foo = ({1}); };    return sizeof(Foo()->foo);]],1);   
pike.git/src/testsuite.in:6000:    test_eq([[(17+12)%(3*(1<<128))]],0x1d);    test_eq([[(17+12*(1<<32))%(3*(1<<32))]],0x11);    test_eq([[(17+12*(1<<32))%(3*(1<<64))]],0xc00000011);    test_eq([[(17+12*(1<<32))%(3*(1<<128))]],0xc00000011);    test_eq([[(17+12*(1<<64))%(3*(1<<64))]],0x11);    test_eq([[(17+12*(1<<64))%(3*(1<<128))]],0xc0000000000000011);    test_eq([[(17+12*(1<<128))%(3*(1<<128))]],0x11);       cond( [[ master()->resolv("Gmp")->mpz ]],    [[ -  test_eq([[Gmp.mpz(68719476736)/12884901888]],5); -  test_eq([[Gmp.mpz(123456789012345678901234567890)/12884901888]],9581507883061474724); -  test_eq([[Gmp.mpz(123456789012345678901234567890)/67890123456789012345]],1818479371); -  test_eq([[Gmp.mpz(123456789012345678901234567890)/67890123456789]],1818479371169857); +  test_eq([[Gmp.mpz(68719476736)/Gmp.mpz(12884901888)]],5); +  test_eq([[Gmp.mpz(123456789012345678901234567890)/Gmp.mpz(12884901888)]], +  Gmp.mpz(9581507883061474724)); +  test_eq([[Gmp.mpz(123456789012345678901234567890)/ +  Gmp.mpz(67890123456789012345)]],1818479371); +  test_eq([[Gmp.mpz(123456789012345678901234567890)/ +  Gmp.mpz(67890123456789)]],Gmp.mpz(1818479371169857));    ]] )   ]])      cond([[ sizeof( cpp("__AUTO_BIGNUM__")/"__AUTO_BIGNUM__" ) == 1 ]],   [[    test_any([[int a=10->pow(30); int b=1000000000000000000000000000000;    return ([a:1])[b]]],1);    test_any([[int a=10->pow(30); int b=1000000000000000000000000000000;    return (<a>)[b]]],1);    test_any([[int a=10->pow(30); int b=1000000000000000000000000000000;