aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-23 00:41:11 +0000
committer_ov4 <ov4@ov4.org>2026-10-23 00:41:11 +0000
commit7c681c33e17550bfc8a0dc969129a2ea855a39fe (patch)
treed835709c64015de4308d1cdb468ed9ce0e55e3e6
parentcf2a020fc3bd7c3cb9aa60b3ce597b3ef66b45c4 (diff)
test(bundle): expect STRING INPUT at end of input to stop the program
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--bundle/src-tauri/src/runner.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundle/src-tauri/src/runner.rs b/bundle/src-tauri/src/runner.rs
index eef35d2..f8fa353 100644
--- a/bundle/src-tauri/src/runner.rs
+++ b/bundle/src-tauri/src/runner.rs
@@ -192,6 +192,12 @@ mod tests {
(
"DECLARE S : STRING\nINPUT S\nOUTPUT \"done\"\n",
"",
+ "INPUT reached the end of input",
+ 1,
+ ),
+ (
+ "DECLARE S : STRING\nINPUT S\nOUTPUT \"done\"\n",
+ "\n",
"done\n",
0,
),