Add C++ test for user defined conversion

This commit is contained in:
Jason Turner
2014-10-28 20:23:19 -06:00
parent 7b42d5307a
commit e85be6eb3d
4 changed files with 52 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
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);