Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
414f754
Begin adding tests.
python-processing-unit Apr 1, 2026
b86b599
Merge pull request #117 from python-processing-unit/main
python-processing-unit Apr 1, 2026
7c338d4
Fix IADD tests.
python-processing-unit Apr 5, 2026
1c0c1e8
Fix more broken tests.
python-processing-unit Apr 5, 2026
1b8df39
Add tests for SPLIT.
python-processing-unit Apr 5, 2026
9bd7778
Add tests for STRIP.
python-processing-unit Apr 5, 2026
4a7de74
Add tests for REPLACE.
python-processing-unit Apr 5, 2026
90e6351
Add tests for SHAPE.
python-processing-unit Apr 5, 2026
5454aa1
Add tests for TFLIP.
python-processing-unit Apr 5, 2026
198c54d
Add tests for SCAT.
python-processing-unit Apr 5, 2026
97c23f0
Add tests for APPEND.
python-processing-unit Apr 5, 2026
c1d3b39
Add tests for FILL.
python-processing-unit Apr 5, 2026
52fa22d
Clean up test.ps1 output.
python-processing-unit Apr 5, 2026
62861a9
Add tests for CONV.
python-processing-unit Apr 5, 2026
249c9d7
Add tests for IN.
python-processing-unit Apr 5, 2026
7a3ec94
Add tests for TNS-TNS arithmetic.
python-processing-unit Apr 5, 2026
1ee4be0
Add tests for TNS-scalar arithmetic.
python-processing-unit Apr 6, 2026
81bdd94
Add tests for KEYS, VALUES, KEYIN, and VALUEIN.
python-processing-unit Apr 6, 2026
9090560
Add tests for MATCH.
python-processing-unit Apr 7, 2026
1d1c63f
Add tests for INV.
python-processing-unit Apr 7, 2026
4511810
Add tests for RUN.
python-processing-unit Apr 7, 2026
c6c7ddd
Add tests for THROW.
python-processing-unit Apr 7, 2026
24da688
Add tests for MAIN.
python-processing-unit Apr 10, 2026
a3abf5e
Add tests for PARALLEL.
python-processing-unit Apr 10, 2026
86cd577
Add tests for AWAIT.
python-processing-unit Apr 10, 2026
5a9faba
Add tests for STOP.
python-processing-unit Apr 10, 2026
497489f
Add tests for READFILE.
python-processing-unit Apr 12, 2026
acabdf6
Add tests for WRITEFILE.
python-processing-unit Apr 12, 2026
3a0cd76
Fix LCM test file extension.
python-processing-unit Apr 12, 2026
7bd42e9
Add tests for EXISTFILE.pre
python-processing-unit Apr 12, 2026
3b937f2
Add tests for DELETEFILE.
python-processing-unit Apr 12, 2026
bf13748
Add tests for OS.
python-processing-unit Apr 12, 2026
fe67584
Add tests for ARGV.
python-processing-unit Apr 12, 2026
7f857db
Add tests for PRINT.
python-processing-unit Apr 13, 2026
1556b96
Add tests for INPUT.
python-processing-unit Apr 13, 2026
464c573
Add tests for WARN.
python-processing-unit Apr 13, 2026
1dacbe2
Add tests for CL.
python-processing-unit Apr 13, 2026
1100916
Add tests for EXIT.
python-processing-unit Apr 13, 2026
2f97d37
Add tests for SHUSH and UNSHUSH.
python-processing-unit Apr 14, 2026
e53d153
Add tests for IMPORT.
python-processing-unit Apr 14, 2026
63d8501
Add tests for IMPORT_PATH.
python-processing-unit Apr 15, 2026
6cea7c0
Add tests for EXTEND.
python-processing-unit Apr 16, 2026
9114f6a
Add tests for EXPORT.
python-processing-unit Apr 17, 2026
50e7b11
Add tests for MSUB.
python-processing-unit Apr 17, 2026
08b9618
Add tests for FPROD.
python-processing-unit Apr 17, 2026
e76ad8e
Add tests for PAUSE.
python-processing-unit Apr 17, 2026
4a1a227
Add tests for COPY and DEEPCOPY.
python-processing-unit Apr 17, 2026
b933af5
Add tests for SER and UNSER.
python-processing-unit Apr 19, 2026
1efd600
Add tests for ASSIGN on an index.
python-processing-unit Apr 19, 2026
d55d157
Add tests for TNS slice assignment.
python-processing-unit Apr 19, 2026
9ca9be2
Add tests for nested-MAP auto-creation.
python-processing-unit Apr 19, 2026
0e3eaac
Add test for circular pointers and frozen pointers.
python-processing-unit Apr 20, 2026
b26b38c
Add tests for ASYNC deferral.
python-processing-unit Apr 20, 2026
fa57616
Add tests for ASYNC escaping CATCH.
python-processing-unit Apr 20, 2026
bb06788
Add tests for RESTART.
python-processing-unit Apr 20, 2026
9436799
Add test for RESUME on non-paused thread.
python-processing-unit Apr 20, 2026
7ff826b
Add tests for -private mode.
python-processing-unit Apr 20, 2026
f7ab1e1
Add test for the REPL.
python-processing-unit Apr 20, 2026
fa7fdb8
Fix FDIV test.
python-processing-unit Apr 20, 2026
0e82da0
Fix FUNC test.
python-processing-unit Apr 20, 2026
1095b24
Fix WRITEFILE test.
python-processing-unit Apr 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
run: .\build.ps1

- name: Run tests
run: .\prefix.exe .\tests\test2.pre
run: .\tests\test.ps1
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow relies on the default runner shell to execute a .ps1 script. To make this more robust and self-documenting, set an explicit PowerShell shell (e.g., shell: pwsh) or invoke the script via PowerShell (pwsh -File .\\tests\\test.ps1) so it behaves consistently if the job shell changes.

Copilot uses AI. Check for mistakes.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ against that DLL's import library, and compiles each discovered extension
against the same shared runtime.

Requires: run from a Developer Command Prompt for Visual Studio where cl.exe is on PATH.
Usage (from Prefix-C folder):
Usage (from Prefix folder):
powershell -ExecutionPolicy Bypass -File .\build.ps1
#>

Expand Down
2 changes: 2 additions & 0 deletions tests/cases/failing/abs-type-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BOOL: b = TRUE
ABS(b)
2 changes: 2 additions & 0 deletions tests/cases/failing/abs-type-str.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STR: s = 'not-a-number'
ABS(s)
1 change: 1 addition & 0 deletions tests/cases/failing/add-mixed-types.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ADD(0d1, 0d1.0)
4 changes: 4 additions & 0 deletions tests/cases/failing/alias-cycle.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MAP: x = <"v" = 0d1>
MAP: a = @x

MAP: x = @a
4 changes: 4 additions & 0 deletions tests/cases/failing/alias-to-frozen.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INT: t = 0d1
FREEZE(t)

INT: p = @t
1 change: 1 addition & 0 deletions tests/cases/failing/all-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALL()
1 change: 1 addition & 0 deletions tests/cases/failing/and-arity-three.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AND(TRUE, TRUE, TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/and-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AND()
1 change: 1 addition & 0 deletions tests/cases/failing/any-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ANY()
1 change: 1 addition & 0 deletions tests/cases/failing/append-arity-one.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPEND(0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/append-arity-three.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPEND(0d1, [0d2], 0d3)
1 change: 1 addition & 0 deletions tests/cases/failing/append-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPEND()
1 change: 1 addition & 0 deletions tests/cases/failing/append-second-non-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPEND(0d1, 0d2)
1 change: 1 addition & 0 deletions tests/cases/failing/append-second-not-1d.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPEND(0d9, [[0d1], [0d2]])
1 change: 1 addition & 0 deletions tests/cases/failing/argv-arity-one.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARGV("extra")
1 change: 1 addition & 0 deletions tests/cases/failing/assert-false.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ASSERT(FALSE)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BOOL: b = TRUE
ASSIGN(b<"k">, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FLT: f = 0d1.5
ASSIGN(f<0d1>, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FUNC: fn = GET_FIVE
ASSIGN(fn<"k">, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INT: i = 0d1
ASSIGN(i<0d1>, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-str.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STR: s = "x"
ASSIGN(s<"k">, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
THR: t = ASYNC{}
ASSIGN(t<"k">, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-map-index-on-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TNS: vec = [0d1, 0d2]
ASSIGN(vec<"a">, 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BOOL: b = TRUE
ASSIGN(b[0d1], 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FLT: f = 0d1.5
ASSIGN(f[0d1], 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FUNC: fn = GET_FIVE
ASSIGN(fn[0d1], 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INT: i = 0d1
ASSIGN(i[0d1], 0d2)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MAP: m = <"a" = 0d1>
ASSIGN(m[0d1], 0d2)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-str.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STR: s = "x"
ASSIGN(s[0d1], 0d1)
2 changes: 2 additions & 0 deletions tests/cases/failing/assign-tns-index-on-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
THR: t = ASYNC{}
ASSIGN(t[0d1], 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/at-in-ident.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOOL: x@ = TRUE
2 changes: 2 additions & 0 deletions tests/cases/failing/await-arity-two.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
THR(worker){}
AWAIT(worker, worker)
1 change: 1 addition & 0 deletions tests/cases/failing/await-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT()
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT(TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT(0d1.0)
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT(LAMBDA BOOL: (){})
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT(0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT(<>)
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-str.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT("thread")
1 change: 1 addition & 0 deletions tests/cases/failing/await-type-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AWAIT([0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/band-radix.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BAND(0b1, 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/base-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE(LAMBDA BOOL: sample_func(){})
1 change: 1 addition & 0 deletions tests/cases/failing/base-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE(<>)
1 change: 1 addition & 0 deletions tests/cases/failing/base-string.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE("42")
1 change: 1 addition & 0 deletions tests/cases/failing/base-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE(ASYNC{})
1 change: 1 addition & 0 deletions tests/cases/failing/bnot-radix.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BNOT(0o1)
1 change: 1 addition & 0 deletions tests/cases/failing/bool-lowercase.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ASSERT(true)
1 change: 1 addition & 0 deletions tests/cases/failing/bor-radix.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOR(0d1, 0b1)
3 changes: 3 additions & 0 deletions tests/cases/failing/break-no-argument.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
BREAK()
}
1 change: 1 addition & 0 deletions tests/cases/failing/break-outside-loop.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BREAK(0d1)
3 changes: 3 additions & 0 deletions tests/cases/failing/break-target-not-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
BREAK(TRUE)
}
3 changes: 3 additions & 0 deletions tests/cases/failing/break-too-deep.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
BREAK(0d2)
}
3 changes: 3 additions & 0 deletions tests/cases/failing/break-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
BREAK(0d0)
}
1 change: 1 addition & 0 deletions tests/cases/failing/bxor-radix.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BXOR(0b1, 0x1)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-endian-case.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = "Big")
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-first-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-first-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1.5)
2 changes: 2 additions & 0 deletions tests/cases/failing/bytes-first-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FUNC INT: ff(INT: x){ RETURN x }
BYTES(ff)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-first-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(<"k" = 0d1>)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-first-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(ASYNC{ TRUE })
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-first-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES([0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-invalid-endian.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = "middle")
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-negative.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(-0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = 0d1.5)
2 changes: 2 additions & 0 deletions tests/cases/failing/bytes-second-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FUNC INT: ff(INT: x){ RETURN x }
BYTES(0d1, endian = ff)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = <"k" = "big">)
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = ASYNC{ TRUE })
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-second-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES(0d1, endian = ["big"])
1 change: 1 addition & 0 deletions tests/cases/failing/bytes-value-type.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BYTES("1")
1 change: 1 addition & 0 deletions tests/cases/failing/catch-no-try.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CATCH{}
1 change: 1 addition & 0 deletions tests/cases/failing/cdiv-zero-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CDIV(0o1.0, 0x0.0)
1 change: 1 addition & 0 deletions tests/cases/failing/cdiv-zero-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CDIV(0d1, 0d0)
1 change: 1 addition & 0 deletions tests/cases/failing/cl-arity-two.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL("exit 0", "extra")
1 change: 1 addition & 0 deletions tests/cases/failing/cl-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL()
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(0d1.0)
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(LAMBDA BOOL: (){})
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(<>)
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL(ASYNC{})
1 change: 1 addition & 0 deletions tests/cases/failing/cl-type-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CL([0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/clog-float.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLOG(0d3.5)
1 change: 1 addition & 0 deletions tests/cases/failing/clog-negative.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLOG(-0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/clog-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLOG(0d0)
1 change: 1 addition & 0 deletions tests/cases/failing/close-curly-bracket-in-ident.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOOL: x} = TRUE
1 change: 1 addition & 0 deletions tests/cases/failing/close-parentheses-in-ident.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOOL: x) = TRUE
1 change: 1 addition & 0 deletions tests/cases/failing/close-square-bracket-in-ident.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOOL: x] = TRUE
1 change: 1 addition & 0 deletions tests/cases/failing/comma-in-ident.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BOOL: x, = TRUE
3 changes: 3 additions & 0 deletions tests/cases/failing/continue-no-parens.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
CONTINUE
}
1 change: 1 addition & 0 deletions tests/cases/failing/continue-outside-loop.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONTINUE()
3 changes: 3 additions & 0 deletions tests/cases/failing/continue-with-argument.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WHILE(TRUE){
CONTINUE(0d1)
}
1 change: 1 addition & 0 deletions tests/cases/failing/conv-arity-eight.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([0d1], [0d1], 0d1, 0d1, 0d0, 0d0, [], 0d9)
1 change: 1 addition & 0 deletions tests/cases/failing/conv-arity-one.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/conv-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV()
1 change: 1 addition & 0 deletions tests/cases/failing/conv-extended-bias-not-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([[[0d1]]], [[[[0d1]]]], bias = 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/conv-extended-bias-size-mismatch.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([[[0d1]]], [[[[0d1, 0d1]]]], bias = [0d5])
1 change: 1 addition & 0 deletions tests/cases/failing/conv-extended-kernel-not-rank4.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([[[0d1]]], [[[0d1]]], stride_w = 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/conv-extended-stride-w-non-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([[[0d1]]], [[[[0d1]]]], stride_w = "1")
1 change: 1 addition & 0 deletions tests/cases/failing/conv-extended-x-not-rank3.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([[0d1]], [[[[0d1]]]], stride_w = 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/conv-first-non-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV(0d1, [0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/conv-legacy-even-kernel.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([0d1, 0d2, 0d3], [0d1, 0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/conv-legacy-rank-mismatch.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([0d1, 0d2], [[0d1, 0d1, 0d1]])
1 change: 1 addition & 0 deletions tests/cases/failing/conv-second-non-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONV([0d1], 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/convert-base-too-large.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONVERT(0d42, 0d65)
1 change: 1 addition & 0 deletions tests/cases/failing/convert-base-too-small.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONVERT(0d42, 0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/convert-base-wrong-type.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONVERT(0d42, TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/convert-value-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONVERT(<>, 0d10)
1 change: 1 addition & 0 deletions tests/cases/failing/convert-value-string.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONVERT("42", 0d10)
1 change: 1 addition & 0 deletions tests/cases/failing/copy-arity-two.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COPY(0d1, 0d2)
1 change: 1 addition & 0 deletions tests/cases/failing/copy-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COPY()
1 change: 1 addition & 0 deletions tests/cases/failing/deepcopy-arity-two.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEEPCOPY(0d1, 0d2)
1 change: 1 addition & 0 deletions tests/cases/failing/deepcopy-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEEPCOPY()
3 changes: 3 additions & 0 deletions tests/cases/failing/del-already-deleted-symbol.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BOOL: x = TRUE
DEL(x)
DEL(x)
2 changes: 2 additions & 0 deletions tests/cases/failing/del-map-intermediate-not-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MAP: value = <"branch" = 0d1>
DEL(value<"branch", "leaf">)
2 changes: 2 additions & 0 deletions tests/cases/failing/del-map-target-not-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INT: value = 0d1
DEL(value<"key">)
2 changes: 2 additions & 0 deletions tests/cases/failing/del-never-assigned-symbol.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BOOL: x
DEL(x)
1 change: 1 addition & 0 deletions tests/cases/failing/del-nonexistent-symbol.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEL(x)
3 changes: 3 additions & 0 deletions tests/cases/failing/del-type-mismatch-after-delete.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INT: x = 0d1
DEL(x)
BOOL: x = TRUE
6 changes: 6 additions & 0 deletions tests/cases/failing/deletefile-arity-two.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IMPORT(path)

STR: p = path.TEMPFILE("temp.txt")
WRITEFILE("Prefix", p)
ASSERT(EXISTFILE(p))
ASSERT(DELETEFILE(p, "Prefix"))
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-arity-zero.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE()
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-bool.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(TRUE)
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(0d1.0)
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-func.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(LAMBDA BOOL: (){})
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(0d1)
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-map.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(<>)
3 changes: 3 additions & 0 deletions tests/cases/failing/deletefile-nonexistent.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IMPORT(path)

DELETEFILE(JOIN(path.script_dir, "/nonexistent.txt"))
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-thr.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE(ASYNC{})
1 change: 1 addition & 0 deletions tests/cases/failing/deletefile-tns.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETEFILE([0d1])
1 change: 1 addition & 0 deletions tests/cases/failing/div-zero-flt.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIV(0o1.0, 0x0.0)
1 change: 1 addition & 0 deletions tests/cases/failing/div-zero-int.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIV(0d1, 0d0)
3 changes: 3 additions & 0 deletions tests/cases/failing/else-no-if.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ELSE{
ASSERT(FALSE)
}
7 changes: 7 additions & 0 deletions tests/cases/failing/elseif-after-else.pre
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
IF(FALSE){
ASSERT(FALSE)
} ELSE {
ASSERT(FALSE)
} ELSEIF(TRUE) {
ASSERT(TRUE)
}
Loading
Loading