File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,13 +112,16 @@ CHAISCRIPT_MODULE_EXPORT chaiscript::ModulePtr create_chaiscript_module_test_mo
112112 m->add (chaiscript::fun (&derived_type_factory), " derived_type_factory" );
113113 m->add (chaiscript::fun (&more_derived_type_factory), " more_derived_type_factory" );
114114
115+ m->add (chaiscript::fun (&TestDerivedType::func), " func" );
116+
115117 m->add (chaiscript::fun (&TestBaseType::func), " func" );
116118 m->add (chaiscript::fun (&TestBaseType::val), " val" );
117119 m->add (chaiscript::fun (&TestBaseType::const_val), " const_val" );
118120 m->add (chaiscript::fun (&TestBaseType::base_only_func), " base_only_func" );
119121
120122 m->add (chaiscript::fun (&get_new_int), " get_new_int" );
121123
124+
122125 m->add_global_const (chaiscript::const_var (TestValue1), " TestValue1" );
123126
124127 m->add (chaiscript::user_type<TestEnum>(), " TestEnum" );
Original file line number Diff line number Diff line change @@ -33,3 +33,8 @@ var md := more_derived_type_factory();
3333assert_equal(md.derived_only_func(), 19);
3434assert_equal(md.base_only_func(), -9);
3535
36+ assert_equal(md.func(), 1);
37+ assert_equal(t2.func(), 1);
38+ assert_equal(d.func(), 1);
39+
40+
You can’t perform that action at this time.
0 commit comments