aboutsummaryrefslogtreecommitdiff
path: root/tests/i/stdin
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.one>2026-10-16 20:53:52 +0800
committer_ov4 <ov4@ov4.one>2026-10-16 20:53:52 +0800
commit5c00b8cd03cbfc516cce92229f3f4974d7549c24 (patch)
tree9d13c180dc345b3e27d241ac56de2aef99dea739 /tests/i/stdin
parent1db81d50e8c664d0707491699485cfb23a0b5907 (diff)
test(compiler): cover fixed CIE behavior and runtime boundaries
Record independently traced outputs with pending human review. Keep standard syntax and naming conflicts as real failures. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/stdin')
-rw-r--r--tests/i/stdin/case.json1
-rw-r--r--tests/i/stdin/expected.txt1
-rw-r--r--tests/i/stdin/input.txt4
-rw-r--r--tests/i/stdin/notes.md5
-rw-r--r--tests/i/stdin/program.cps9
5 files changed, 20 insertions, 0 deletions
diff --git a/tests/i/stdin/case.json b/tests/i/stdin/case.json
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/tests/i/stdin/case.json
@@ -0,0 +1 @@
+{}
diff --git a/tests/i/stdin/expected.txt b/tests/i/stdin/expected.txt
new file mode 100644
index 0000000..acfc9ae
--- /dev/null
+++ b/tests/i/stdin/expected.txt
@@ -0,0 +1 @@
+-7:TRUE:Z:hello
diff --git a/tests/i/stdin/input.txt b/tests/i/stdin/input.txt
new file mode 100644
index 0000000..604b657
--- /dev/null
+++ b/tests/i/stdin/input.txt
@@ -0,0 +1,4 @@
+-7
+1
+Z
+hello
diff --git a/tests/i/stdin/notes.md b/tests/i/stdin/notes.md
new file mode 100644
index 0000000..62f8727
--- /dev/null
+++ b/tests/i/stdin/notes.md
@@ -0,0 +1,5 @@
+# stdin
+
+Human review: pending. Expected output was independently traced by AI, not captured from cpsc.
+
+Basis and trace: CIE p. 15; the project INPUT contract reads BOOLEAN as an integer (nonzero is true) and STRING as a whitespace-delimited token.
diff --git a/tests/i/stdin/program.cps b/tests/i/stdin/program.cps
new file mode 100644
index 0000000..025c634
--- /dev/null
+++ b/tests/i/stdin/program.cps
@@ -0,0 +1,9 @@
+DECLARE N : INTEGER
+DECLARE Flag : BOOLEAN
+DECLARE Letter : CHAR
+DECLARE Text : STRING
+INPUT N
+INPUT Flag
+INPUT Letter
+INPUT Text
+OUTPUT N, ":", Flag, ":", Letter, ":", Text