test: group examples into per-category folders

Move examples/*.sx and their expected/ snapshots into per-category
subfolders (examples/<category>/...). Folder = leading filename token,
with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus
runner and LSP sweep now discover each category's expected/ dir, while
issues/ stays flat. Example 1058's repo-root-relative companion import
is made file-relative. Path strings embedded in 164 snapshots were
regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
This commit is contained in:
agra
2026-06-21 14:41:34 +03:00
parent 6d1409bc1f
commit 66bdc70bf1
3357 changed files with 456 additions and 363 deletions

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
hello 25
--- build done ---
hello 25

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,4 @@
f64
3.200000
Vector(4,f32)
() -> i32

View File

@@ -0,0 +1,2 @@
--- build done ---
rt

View File

@@ -0,0 +1,2 @@
--- build done ---
rt

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
ok

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,2 @@
POINT.x = 7
POINT.y = 13

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,2 @@
greeting = 'hello world'
greeting.len = 11

View File

@@ -0,0 +1,2 @@
inside
n=42

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,9 @@
=== 8. Comptime ===
run-const: 25
run-expr: 42
run-chain: 30
ct-opt-coalesce: 141
ct-opt-unwrap: 77
ct-opt-guard: 10
insert-ok
insert-gen: 42

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,6 @@
=== inline if ===
64-bit
not wasm
known os
desktop 64-bit
pointer size via if: 8

View File

@@ -0,0 +1,2 @@
sum 0..M = 3
sum 0..(M+1) = 6

View File

@@ -0,0 +1 @@
sum 0..M = 3

View File

@@ -0,0 +1,3 @@
inline for -2..1 sum = -3
for -2..1 sum = -3
inline for 0..(-2.0) sum = 0

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,6 @@
before
name=u64
unsigned=true
value=u64
after
--- build done ---

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,2 @@
value 3
closed

View File

@@ -0,0 +1,2 @@
some 7
none

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,9 @@
Point has 3 fields
0: x : i64
1: y : f64
2: on : bool
field 0 is i64: true
field 1 is f64: true
Msg.num payload: i64
Msg.tag payload: bool
Msg.quit payload: void

View File

@@ -0,0 +1,4 @@
recv value 42
recv closed
try value 7
try empty

View File

@@ -0,0 +1,2 @@
c -> cons
len = 2

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,3 @@
circle r=2.500000
rect n=7
empty

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,3 @@
info
warn
fatal code=70

View File

@@ -0,0 +1,2 @@
north
east 90

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,2 @@
v = 1.500000 -2.000000
r = 42 9.500000

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,2 @@
p = 3 2.500000
t = 7 true 1.500000

View File

@@ -0,0 +1,3 @@
ok=2.500000
pending
failed code=404

View File

@@ -0,0 +1 @@
hello, compiler

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,3 @@
20
10 20 30
0 1 2

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,2 @@
Point has 3 fields
missing type id = 0

View File

@@ -0,0 +1,3 @@
Pair has 2 fields
field 0 = lo : Point
field 1 = hi : Point

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,3 @@
Color kind = 2, Point kind = 1
Color.green = 1
WindowFlags.vsync = 64

View File

@@ -0,0 +1,3 @@
spades
tag=7
Suit kind=2, GraphA kind=3

View File

@@ -0,0 +1,2 @@
spades
diamonds

View File

@@ -0,0 +1 @@
spades

Some files were not shown because too many files have changed in this diff Show More