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:
1
examples/comptime/expected/0600-comptime-run.exit
Normal file
1
examples/comptime/expected/0600-comptime-run.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/comptime/expected/0600-comptime-run.stderr
Normal file
1
examples/comptime/expected/0600-comptime-run.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
3
examples/comptime/expected/0600-comptime-run.stdout
Normal file
3
examples/comptime/expected/0600-comptime-run.stdout
Normal file
@@ -0,0 +1,3 @@
|
||||
hello 25
|
||||
--- build done ---
|
||||
hello 25
|
||||
1
examples/comptime/expected/0601-comptime-meta.exit
Normal file
1
examples/comptime/expected/0601-comptime-meta.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/comptime/expected/0601-comptime-meta.stderr
Normal file
1
examples/comptime/expected/0601-comptime-meta.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
4
examples/comptime/expected/0601-comptime-meta.stdout
Normal file
4
examples/comptime/expected/0601-comptime-meta.stdout
Normal file
@@ -0,0 +1,4 @@
|
||||
f64
|
||||
3.200000
|
||||
Vector(4,f32)
|
||||
() -> i32
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
--- build done ---
|
||||
rt
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
--- build done ---
|
||||
rt
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ok
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
POINT.x = 7
|
||||
POINT.y = 13
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
greeting = 'hello world'
|
||||
greeting.len = 11
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
inside
|
||||
n=42
|
||||
1
examples/comptime/expected/0608-comptime-comptime.exit
Normal file
1
examples/comptime/expected/0608-comptime-comptime.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/comptime/expected/0608-comptime-comptime.stderr
Normal file
1
examples/comptime/expected/0608-comptime-comptime.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
9
examples/comptime/expected/0608-comptime-comptime.stdout
Normal file
9
examples/comptime/expected/0608-comptime-comptime.stdout
Normal 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
|
||||
1
examples/comptime/expected/0609-comptime-inline-if.exit
Normal file
1
examples/comptime/expected/0609-comptime-inline-if.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
=== inline if ===
|
||||
64-bit
|
||||
not wasm
|
||||
known os
|
||||
desktop 64-bit
|
||||
pointer size via if: 8
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
sum 0..M = 3
|
||||
sum 0..(M+1) = 6
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
sum 0..M = 3
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
inline for -2..1 sum = -3
|
||||
for -2..1 sum = -3
|
||||
inline for 0..(-2.0) sum = 0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
before
|
||||
name=u64
|
||||
unsigned=true
|
||||
value=u64
|
||||
after
|
||||
--- build done ---
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
value 3
|
||||
closed
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
some 7
|
||||
none
|
||||
1
examples/comptime/expected/0616-comptime-field-type.exit
Normal file
1
examples/comptime/expected/0616-comptime-field-type.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
recv value 42
|
||||
recv closed
|
||||
try value 7
|
||||
try empty
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
c -> cons
|
||||
len = 2
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
circle r=2.500000
|
||||
rect n=7
|
||||
empty
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
info
|
||||
warn
|
||||
fatal code=70
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
north
|
||||
east 90
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
v = 1.500000 -2.000000
|
||||
r = 42 9.500000
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
p = 3 2.500000
|
||||
t = 7 true 1.500000
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
ok=2.500000
|
||||
pending
|
||||
failed code=404
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hello, compiler
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
20
|
||||
10 20 30
|
||||
0 1 2
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Point has 3 fields
|
||||
missing type id = 0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Pair has 2 fields
|
||||
field 0 = lo : Point
|
||||
field 1 = hi : Point
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Color kind = 2, Point kind = 1
|
||||
Color.green = 1
|
||||
WindowFlags.vsync = 64
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
spades
|
||||
tag=7
|
||||
Suit kind=2, GraphA kind=3
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
spades
|
||||
diamonds
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
spades
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user