mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
11 lines
279 B
ChaiScript
11 lines
279 B
ChaiScript
load_module("test_module")
|
|
|
|
auto t := TestBaseType();
|
|
|
|
// This uses the TestBaseType to Type2 user type
|
|
// conversion which was added in the module and then calls
|
|
// "get_val()" which exists on the Type2 type
|
|
assert_equal(t.get_val(), 10);
|
|
|
|
assert_equal(t.get_str().size(), 11);
|