From bf224030cbe80dc7e75163830d5773a79542ccf6 Mon Sep 17 00:00:00 2001 From: mtardy Date: Mon, 24 Aug 2020 19:44:03 +0200 Subject: [PATCH] Update test files --- test.txt | 3 +-- test3.txt | 15 +++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/test.txt b/test.txt index 7655471..eaa5402 100644 --- a/test.txt +++ b/test.txt @@ -68,9 +68,8 @@ fun f() { t = millis(); var i = 0; -while (i < 1000000) i = i + 1; +while (i < 10000) i = i + 1; println(millis() - t); -exit(0); do println(i); while ((i = i + 1) < 10); i= 5; diff --git a/test3.txt b/test3.txt index 9e7488d..5a9c243 100644 --- a/test3.txt +++ b/test3.txt @@ -1,9 +1,8 @@ -var num = `4; // THESE ARE THE -var ast = `(3+@num); // IMPORTANT 2 LINES - -fun f() { - var c = `4+3 - return 5 + @c +a = {} +a.b = fun () { + switch (1) { + case 1: + throw { name: "EvalError", message: "oops" } + } } - -f() \ No newline at end of file +invoke(a, a.b, {}) \ No newline at end of file