pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:8431:   ]])      // typeof   test_eq(sprintf("%O", typeof(1)),"int(1)")   test_eq(sprintf("%O", typeof("")),"string(zero:)")   ignore_warning("Indexing the empty string.", [[    test_aq([[ sprintf("%O", typeof(""[0])) ]], "zero")   ]])   test_eq(sprintf("%O", typeof(0.0)),"float")   test_eq(sprintf("%O", typeof(all_constants()["all_constants"])),"mixed") - test_true(typeof("hej"+3) >= typeof("hej3")) + dnl The following does test not currently work as typeof("hej3") includes + dnl character values between '4' and 'd'. Test the parts instead. + dnl test_true(typeof("hej"+3) >= typeof("hej3")) + test_true(typeof("hej"+3) >= typeof("hej")) + test_true(typeof("hej"+3) >= typeof("3"))      // _typeof   test_eq(sprintf("%O", _typeof(1)),"int(1)")   test_eq(sprintf("%O", _typeof("")),"string(zero:)")   test_eq(sprintf("%O", _typeof("x"[0])),"int(120)")   test_eq(sprintf("%O", _typeof(0.0)),"float")   test_eq([[sscanf(sprintf("%Ox", _typeof(this_object))-" ",    "function(void|int(0..%*[0-9]):object)%*c")]], 2)