pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:5254:
]], "foo") test_any([[ int q; return function_object( lambda() { return q; }); ]],[[this]]) test_compile([[ class {
-
class foobar {}
()
;
+
class foobar {};
object(Stdio.File) foo = foobar(); }]]) test_compile(class { object(Stdio.File) foo=class {} ();}) test_compile_error(class { object(Stdio.File) foo = class {float is_file;} ();}) test_compile(class { object(Stdio.File) foo = class { int is_file;} ();}) test_do(class { object foo; object(Stdio.File) bar=foo; }) test_do(class { object foo; Stdio.File bar=foo; }) test_do(class { object(Stdio.File) foo; object bar=foo; }) test_do(class { Stdio.File foo; object bar=foo; }) test_any(if(int i=1) return i; return 0;,1)
pike.git/src/testsuite.in:7137:
test_true([[Pike.count_memory (-1, 17) == 0]]) test_true([[Pike.count_memory (-1, ({"some string with no other ref in memory "+ Standards.UUID.make_version4()->str()})) == Pike.count_memory (-1, ({""}))]]) test_true([[Pike.count_memory (0, ({"some string with no other ref in memory " + Standards.UUID.make_version4()->str()})) > Pike.count_memory (0, ({""}))]]) test_true([[Pike.count_memory (-1, ({time(1)})) + Pike.count_memory (-1, ([1: time(1)])) == Pike.count_memory (0, ({([1: time(1)])}))]])
-
test_true([[Pike.count_memory (0, class {mapping(
X
:array(int)) x;}) >
+
test_true([[Pike.count_memory (0, class {mapping(
this_program
:array(int)) x;}) >
Pike.count_memory (0, class {int x;})]]) test_true([[Pike.count_memory (0, ({compile ( "constant x = ([1: " + time(1) + "]);")})) > Pike.count_memory (0, ({([1: time(1)])}))]]) test_eq([[count_memory_stats (-1, ({time(1)}))]], [["i:1,c:0,e:0,v:1,r:0,rnd:1"]]) test_eq([[count_memory_stats (-1, (<time(1)>))]], [["i:1,c:0,e:0,v:2,r:0,rnd:1"]]) test_eq([[count_memory_stats (-1, ([1: time(1)]))]],
pike.git/src/testsuite.in:8004:
test_eq([[sscanf(sprintf("%Ox", _typeof(this_object))-" ", "function(void|int(0..%*[0-9]):object)%*c")]], 2) // class test_true(programp(class {})) test_true(functionp(class { int foo() { return 1; }}()->foo)) test_true(class { int foo() { return 1; }}()->foo()) test_true(class { int i=1; }()->i) test_false(class { int foo() { return 1; }}()->bar)
-
test_eq(class { program foo=class
c
{ int i=20; }; }()->foo()->i,20)
+
test_eq(class { program foo
=
class { int i=20; }; }()->foo()->i,20)
// class() test_true(programp(class (){})) test_equal(indices(class (string a,protected int b){}("foo",0)), ({"a"})) test_equal(values(class (string a,protected int b){}("foo",0)), ({"foo"})) test_true(programp(class (string ... a){})) test_equal(indices(class (string a,protected int ... b){}("foo",0)), ({"a"})) test_equal(values(class (protected string a, int ... b){}("foo",0)), ({({0})})) test_do([[