fix (load) bug
This commit is contained in:
@@ -261,6 +261,10 @@ class BasicTestCase extends Test {
|
||||
function testCallAlias() {
|
||||
_testCallAlias();
|
||||
}
|
||||
|
||||
function testLoadedFunction() {
|
||||
Assert.equals("loaded", BasicTestCase.loadedFunction());
|
||||
}
|
||||
}
|
||||
|
||||
class BasicObject {
|
||||
|
@@ -1,3 +1,6 @@
|
||||
// (load) brings in the fields and compile-time definitions of another Kiss file
|
||||
(load "BasicTestCaseExtra.kiss")
|
||||
|
||||
// (defvar) declares static variables
|
||||
(defvar message "Howdy")
|
||||
|
||||
|
1
src/test/cases/BasicTestCaseExtra.kiss
Normal file
1
src/test/cases/BasicTestCaseExtra.kiss
Normal file
@@ -0,0 +1 @@
|
||||
(defun loadedFunction [] "loaded")
|
Reference in New Issue
Block a user