mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-08 01:36:54 +08:00
Add missing inheritance unit test
This commit is contained in:
parent
f4e4f92dae
commit
2b80ca8cc5
8
unittests/inheritance.chai
Normal file
8
unittests/inheritance.chai
Normal file
@ -0,0 +1,8 @@
|
||||
load_module("test_module")
|
||||
|
||||
var t0 = TestBaseType();
|
||||
var t = TestDerivedType();
|
||||
|
||||
assert_equal(t0.func(), 0);
|
||||
assert_equal(t.func(), 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user