pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-04
2016-01-04 15:36:30 by Per Hedbor <ph@opera.com>
c49442acbafe5e951a4f8978372ba44f7927d11c (
27
lines) (+
27
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
minimal auto tests
680:
return sprintf("%O", typeof(rows(foo, bar))); ]], "array(int)")
+
// basic auto tests.
+
test_any([[
+
class Toplevel {
+
class Foo {
+
auto a = 10;
+
auto b = typeof(a);
+
};
+
string test() {
+
return sprintf("a%Ob%O", typeof(Foo().a),typeof(Foo().b));
+
};
+
};
+
return Toplevel()->test();
+
]], "aint(10..10)btype(int(10..10))");
+
test_any([[{
-
+
class Toplevel {
+
class Foo {
+
auto test(){ return 10;return 20;return 30; };
+
};
+
string test() {
+
return sprintf("%O", typeof(Foo().test));
+
}
+
};
+
return Toplevel()->test()-" ";
+
}]], "function(:int(10..10)|int(20..20)|int(30..30))");
+
+
test_any([[{
class Foo { mixed m;