pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2022-01-07
2022-01-07 10:58:59 by Marcus Comstedt <marcus@mc.pp.se>
b088407acc7d434c97cc5222a09c37a467488550 (
8
lines) (+
8
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Testsuite: Check type inference for some string ops
8438:
]]) 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)")
9150:
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)