pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.777 2007/05/03 09:08:05 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.778 2007/05/03 16:34:26 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:6406:    test_do(sleep(2))    test_eq(AFJLLAF,17)    test_do(add_constant("AFJLLAF"))    test_do(signal(signum("SIGFPE"), 0))    test_do(signal(signum("SIGFPE")))   ]])      // typeof   test_eq(sprintf("%O", typeof(1)),"int(1..1)")   test_eq(sprintf("%O", typeof("")),"string(zero)") - test_eq(sprintf("%O", typeof(""[0])),"zero") + test_any([[ +  // Suppress warnings. +  class handler { +  void compile_warning (string file, int line, string err) {}; +  }; +  return compile_string("string s = sprintf(\"%O\", typeof(\"\"[0]));", +  "-", handler())()->s; + ]], "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)