pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1:
-
test_true([["$Id: testsuite.in,v 1.
390
2002/
04
/
18
10
:
46
:
55
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
391
2002/
10
/
15
12
:
12
:
49
anders
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals()) ]]); test_eq(1e1,10.0); test_eq(1E1,10.0); test_eq(1e+1,10.0); test_eq(1.1e1,11.0); test_eq(1e-1,0.1);
pike.git/src/testsuite.in:1965:
]) ) ]]) ]]) cond([[all_constants()->localtime && all_constants()->mktime]], [[ test_any([[int x=time(); return mktime(localtime(x)) == x;]], 1) test_any([[int x=time(); for(int y=0;y<100;y++) if(mktime(localtime(x+y)) != x+y) return x+y; return 0;]], 0) ]])
+
cond([[all_constants()->gmtime && all_constants()->mktime]],
+
[[
+
test_any([[
+
// http://community.roxen.com/crunch/show_bug.cgi?id=3270
+
int x=time(); return mktime(gmtime(x)) == x;]], 1)
+
]])
+
cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals()) ]]) // sort test_equal(sort(({1,3,2,4})),({1,2,3,4})) test_equal(sort(({4,3,2,1})),({1,2,3,4})) test_equal([[lambda() {array(int) a=({1,2,3,4}); sort(({4,3,2,1}),a); return a; }()]],[[({4,3,2,1})]] ) test_equal([[lambda() {array(int) a=({1,2,3,4}), b=a+({}); sort(({4,3,2,1}),a,b); return b; }()]],[[({4,3,2,1})]] )