ChaiScript/unittests/3.x/inheritance.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

9 lines
136 B
ChaiScript

load_module("test_module")
var t0 = TestBaseType()
var t = TestDerivedType();
assert_equal(t0.func(), 0);
assert_equal(t.func(), 1);