From 7cfa5315a8b18ea108e293cc42773c1cabb857be Mon Sep 17 00:00:00 2001 From: plondon Date: Sat, 23 Oct 2021 11:17:09 -0400 Subject: [PATCH] try skipping repl if expected output --- backend/api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/api.js b/backend/api.js index a7b9937..5b3251c 100644 --- a/backend/api.js +++ b/backend/api.js @@ -306,10 +306,12 @@ export class Session { if (compile) { cmdline = `( ${compile} ) && ( ${run} )`; } - } else if (repl) { + } else if (repl && !expectedOutput) { cmdline = repl; } else { - cmdline = `echo '${name} has no REPL, press Run to see it in action'`; + cmdline = expectedOutput + ? "Test runner" + : `echo '${name} has no REPL, press Run to see it in action'`; } if (code === undefined) { code = createEmpty !== undefined ? createEmpty : template + "\n";