pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
849
2008/
08
/
23
03
:
57
:
12
mast Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
850
2008/
09
/
02
11
:
58:
57 mast 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:7589:
test_eq("foo"[-100..100],"foo") ignore_warning("Range is always empty.", [[ test_any(return "foo"[1..0];,"") ]]) test_any(int u=-100; return "foo"[0..u];,"") dnl Use variable to avoid warning. test_eq("foobargazonk"[0..],"foobargazonk") test_eq("foobargazonk"[1..],"oobargazonk") test_eq("foobargazonk"[5..],"rgazonk") test_eq("foobargazonk"[..2],"foo") test_eq("foobargazonk"[..5],"foobar")
+
test_eq("1234"[..Int.NATIVE_MAX], "1234")
+
test_eq("1234"[..Int.NATIVE_MAX - 1], "1234")
+
test_eq("1234"[Int.NATIVE_MIN..], "1234")
+
test_eq("1234"[Int.NATIVE_MIN + 1..], "1234")
test_eq("f\7777\7777bargaz\7777nk"[0..],"f\7777\7777bargaz\7777nk") test_eq("f\7777\7777bargaz\7777nk"[1..],"\7777\7777bargaz\7777nk") test_eq("f\7777\7777bargaz\7777nk"[5..],"rgaz\7777nk") test_eq("f\7777\7777bargaz\7777nk"[..2],"f\7777\7777") test_eq("f\7777\7777bargaz\7777nk"[..5],"f\7777\7777bar") test_eq("f\77777777\77777777bargaz\77777777nk"[0..],"f\77777777\77777777bargaz\77777777nk") test_eq("f\77777777\77777777bargaz\77777777nk"[1..],"\77777777\77777777bargaz\77777777nk") test_eq("f\77777777\77777777bargaz\77777777nk"[5..],"rgaz\77777777nk")