Add explicit tests for accessing data members of const objects

This commit is contained in:
Jason Turner
2013-09-27 20:19:16 -06:00
parent 101225aa68
commit d44de49fb1
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
load_module("test_module")
var t0 = TestBaseType()
t0.val = 13
assert_equal(15, t0.const_val)
assert_equal(13, t0.val)
assert_equal(15, t0.constMe().const_val)
assert_equal(13, t0.constMe().val)