made the import path relative to the current script
This commit is contained in:
+1
-19
@@ -265,22 +265,4 @@ fun compareAny(A, B) {
|
||||
error("Maps aren't supported yet!");
|
||||
|
||||
return A == B;
|
||||
}
|
||||
|
||||
assert(compareAny(1, 2) == true);
|
||||
assert(compareAny([], []) == true);
|
||||
assert(compareAny([], [1]) == false);
|
||||
assert(compareAny([1, 2, 3], [1, 2, 3]) == true);
|
||||
assert(compareAny([1, 2, 3], [1, 2, 4]) == false);
|
||||
assert(compareAny([1, 2, 3], [1, 2, 3, 4]) == false);
|
||||
|
||||
assert(parse("null") == none);
|
||||
assert(parse("true") == true);
|
||||
assert(parse("false") == false);
|
||||
assert(parse('"Hello, world!"') == "Hello, world!");
|
||||
assert(compareAny(parse('[]'), []));
|
||||
assert(compareAny(parse('[1, 2, 3]'), [1, 2, 3]));
|
||||
|
||||
val, err = parse('[1, 2, 3]');
|
||||
print("val=[", val, "]\n");
|
||||
print("err=[", err, "]\n");
|
||||
}
|
||||
Reference in New Issue
Block a user