Allow user to add globals from within script.
This commit is contained in:
10
unittests/global_in_script.chai
Normal file
10
unittests/global_in_script.chai
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
var i = 5
|
||||
add_global(i, "j")
|
||||
|
||||
def myFun()
|
||||
{
|
||||
assert_equal(j, 5)
|
||||
}
|
||||
|
||||
myFun();
|
Reference in New Issue
Block a user