pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.779 2007/05/04 20:59:28 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.780 2007/05/09 19:35:41 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:6428:   ]], "zero")   test_eq(sprintf("%O", typeof(0.0)),"float")   test_eq(sprintf("%O", typeof(all_constants()["all_constants"])),"mixed")      // _typeof   test_eq(sprintf("%O", _typeof(1)),"int(1..1)")   test_eq(sprintf("%O", _typeof("")),"string(zero)")   test_eq(sprintf("%O", _typeof("x"[0])),"int(120..120)")   test_eq(sprintf("%O", _typeof(0.0)),"float")   test_eq([[sscanf(sprintf("%Ox", _typeof(this_object))-" ", -  "function(int(0..%*[0-9])|void:object)%*c")]], 2) +  "function(void|int(0..%*[0-9]):object)%*c")]], 2)         // class   test_true(programp(class c {}))   test_true(functionp(class c { int foo() { return 1; }}()->foo))   test_true(class c { int foo() { return 1; }}()->foo())   test_true(class c { int i=1; }()->i)   test_false(class c { int foo() { return 1; }}()->bar)   test_eq(class c { program foo=class c { int i=20; }; }()->foo()->i,20)