Skip to content
Snippets Groups Projects
Commit 9ba4cff0 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added one more test.

Rev: src/testsuite.in:1.63
parent af604f95
No related branches found
No related tags found
No related merge requests found
test_true([["$Id: testsuite.in,v 1.62 1997/12/03 22:46:18 hubbe Exp $"]]) test_true([["$Id: testsuite.in,v 1.63 1998/02/11 00:56:34 grubba Exp $"]])
test_eq(1e1,10.0) test_eq(1e1,10.0)
test_eq(1E1,10.0) test_eq(1E1,10.0)
test_eq(1e+1,10.0) test_eq(1e+1,10.0)
...@@ -19,6 +19,11 @@ class p2 { int foo() { return 3; }}; ...@@ -19,6 +19,11 @@ class p2 { int foo() { return 3; }};
class c1 { inherit p1; inherit p2; int foo() { return p1::foo()+p2::foo(); }}; class c1 { inherit p1; inherit p2; int foo() { return p1::foo()+p2::foo(); }};
class c2 { inherit c1; }; return c2()->foo();]],4) class c2 { inherit c1; }; return c2()->foo();]],4)
test_any([[
class A { constant a=0; int foo() { return a; } };
class B { inherit A; constant a=1; };
return B()->foo(); ]], 1)
test_any([[ test_any([[
class p1 { int foo() { return 1; } }; class p1 { int foo() { return 1; } };
class p2 { int foo() { return 2; } }; class p2 { int foo() { return 2; } };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment