pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2015-05-15
2015-05-15 11:27:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e26ca3f0791978b77c3f1074c3fd9cd07fff194a (
17
lines) (+
9
/-
8
)
[
Show
|
Annotate
]
Branch:
8.1
Testsuite: Fixed some prototype tests to use equal().
1119:
} ]])
-
// Test that prototypes
evaluate
to zero.
-
test_any([[
+
// Test that prototypes
are
equal()
to zero.
+
test_any
_equal
([[
class Foo {int foo();};
-
return Foo()->foo
== 0
;
-
]],
1
)
+
return Foo()->foo;
+
]],
0
)
test_any_equal([[ class Foo {int foo();}; return indices(Foo());
1132:
class Foo {int foo();}; return values(Foo()); ]], ({0}))
-
test_any([[
+
test_any
_equal
([[
class Foo { int foo();
-
int(0..1)
f()
+
function
f()
{
-
return foo
== 0
;
+
return foo;
} }; return Foo()->f();
-
]],
1
)
+
]],
0
)
test_any([[ class Foo {