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"))      // _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)      
pike.git/src/testsuite.in:9143:   test_eq(1 ^ 1,0)   test_eq(4 ^ 1,5)   test_eq(1 ^ 9,8)   test_eq([[ "\007" ^ "\023"]],"\024")   test_eq([[ "\177777x" ^ "ab" ]], "\177636\32")   test_equal( ({1,2,3,4,4}) ^ ({3,5,6}) , ({1,2,4,4,5,6}))   test_equal( (<4,5,6>) ^ (<5,5,5>), (<4,5,5,6>) )   test_equal( ([-4:8,8:7]) ^ ([3:3,8:3]), ([-4:8,3:3]) )   test_equal(({1,3,3,3,4}) ^ ({2,3,3,5}), ({1,3,4,2,5}))   test_equal(({1,3,3,4}) ^ ({2,3,3,3,5}), ({1,4,2,3,5})) + test_any([[ +  string(7bit) cyrillic_to_7bit(string(0x401..0x45f) text) { +  return text ^ "\u0400"*sizeof(text); +  } +  return cyrillic_to_7bit("\u041d\u0435\u0442"); + ]], "\35""5B")      // testing <<   test_eq(1<<0,1)   test_eq(1<<1,2)   test_eq(1<<10,1024)   test_eq(5<<3,40)   test_eval_error(return 17<<-10)      // testing >>   test_eq(9>>2,2)