From 3debd3704edd0ad47f0c850438763717d54340c2 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 19 Jul 2019 21:49:16 -0700 Subject: [PATCH] Remove try/catch blocks There were only here so that we could check in the tests before the code actually worked --- .../src/maki-interpreter/interpreter.test.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/experiments/modern/src/maki-interpreter/interpreter.test.js b/experiments/modern/src/maki-interpreter/interpreter.test.js index d0b1c972..8856b18e 100644 --- a/experiments/modern/src/maki-interpreter/interpreter.test.js +++ b/experiments/modern/src/maki-interpreter/interpreter.test.js @@ -69,12 +69,7 @@ describe("can use basic operators", () => { versions.forEach(version => { test(`with basic test bytecode compiled by ${version}`, async () => { - try { - await runFile(`./reference/maki_compiler/${version}/basicTests.maki`); - } catch (e) { - // Uncomment this next line to find the next bug to work on. - console.error(e); - } + await runFile(`./reference/maki_compiler/${version}/basicTests.maki`); expect(mockMessageBox.mock.calls).toEqual( [ "2 + 2 = 4", @@ -140,14 +135,9 @@ describe("can use basic operators", () => { }); test(`with simple functions test bytecode compiled by ${version}`, async () => { - try { - await runFile( - `./reference/maki_compiler/${version}/simpleFunctions.maki` - ); - } catch (e) { - // Uncomment this next line to find the next bug to work on. - console.error(e); - } + await runFile( + `./reference/maki_compiler/${version}/simpleFunctions.maki` + ); expect(mockMessageBox.mock.calls).toEqual( [ "simple custom function",