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.
614
2003/03/
04
23
:
33
:
50
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
615
2003/03/
07
14
:
17
:
25
grubba
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]]) cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals()) ]]); test_eq(1e1,10.0); test_eq(1E1,10.0);
pike.git/src/testsuite.in:273:
mixed f() { return typeof(b->m); } }; Foo c; Bar d; return sprintf("%O$%O$%O$%O", Bar()->f(), typeof(c->m), typeof(d->m), typeof(d->b->m)); }]], "mixed$mixed$string$mixed")
+
// las.c:find_return_type() checks.
+
test_eq([[
+
// Test case from Robert J. Budzynski <Robert.Budzynski@fuw.edu.pl>.
+
// When broken the return type will be mixed.
+
sprintf("%O", typeof(lambda(string s){
+
return Locale.Charset.decoder("utf-8")->feed(s)->drain();
+
}))
+
]], [[ "function(string : string)" ]])
+
// type checks define(test_type_error, [[ test_compile_error([[ $1 x; x=$3; ]]) test_compile_error_any([[ class ErrBa { $1 x() { return $3; } } ]]) test_compile_error_any([[ class ErrBa { $1 x() { $2 a=$3; return a; } } ]]) ]]) test_type_error(int,float,17.23) test_type_error(int,array,({1,2,3}))