Add test for passing non-const ref param
This commit is contained in:
8
unittests/non_const_param.chai
Normal file
8
unittests/non_const_param.chai
Normal file
@@ -0,0 +1,8 @@
|
||||
load_module("test_module")
|
||||
|
||||
var t2 = TestBaseType();
|
||||
|
||||
var s = "5";
|
||||
t2.set_string_val(s);
|
||||
assert_equal(s, "42")
|
||||
|
Reference in New Issue
Block a user