12 lines
203 B
ChaiScript

var newfun = use("use.inc");
assert_equal("hello", greet())
// Include it a second time and see if there are any errors
use("use.inc")
assert_equal("hello", greet())
assert_equal("world", newfun())