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/vectors/expected/1500-vectors-vector-math.exit
Normal file
1
examples/vectors/expected/1500-vectors-vector-math.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
dot: 0.000000
|
||||
cross: [0.000000, 0.000000, 1.000000]
|
||||
length: 5.000000
|
||||
norm: [0.600000, 0.800000, 0.000000]
|
||||
1
examples/vectors/expected/1501-vectors-const-lane.exit
Normal file
1
examples/vectors/expected/1501-vectors-const-lane.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/vectors/expected/1501-vectors-const-lane.stderr
Normal file
1
examples/vectors/expected/1501-vectors-const-lane.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
4
examples/vectors/expected/1501-vectors-const-lane.stdout
Normal file
4
examples/vectors/expected/1501-vectors-const-lane.stdout
Normal file
@@ -0,0 +1,4 @@
|
||||
direct3: 1.000000 2.000000 3.000000
|
||||
direct4: 1.000000 2.000000 3.000000 4.000000
|
||||
alias3: 7.000000
|
||||
alias4: 8.000000
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: Vector lane count must be a positive compile-time integer constant
|
||||
--> examples/vectors/1502-vectors-runtime-lane-not-const.sx:14:16
|
||||
|
|
||||
14 | v : Vector(lanes(), f32) = ---;
|
||||
| ^^^^^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: Vector lane count 5000000000 does not fit in u32
|
||||
--> examples/vectors/1503-vectors-oversized-lane-not-u32.sx:13:16
|
||||
|
|
||||
13 | v : Vector(5000000000, f32) = ---;
|
||||
| ^^^^^^^^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
v0=1.000000 v2=3.000000 v3=4.000000
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: Vector lane count must be a positive compile-time integer constant
|
||||
--> examples/vectors/1505-vectors-zero-lane-rejected.sx:13:16
|
||||
|
|
||||
13 | v : Vector(0, f32) = ---;
|
||||
| ^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
1
examples/vectors/expected/1506-vectors-lane-store.exit
Normal file
1
examples/vectors/expected/1506-vectors-lane-store.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/vectors/expected/1506-vectors-lane-store.stderr
Normal file
1
examples/vectors/expected/1506-vectors-lane-store.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
7
examples/vectors/expected/1506-vectors-lane-store.stdout
Normal file
7
examples/vectors/expected/1506-vectors-lane-store.stdout
Normal file
@@ -0,0 +1,7 @@
|
||||
x=1.000000
|
||||
y=2.000000
|
||||
z=3.000000
|
||||
w=4.000000
|
||||
u=10.000000 20.000000 30.000000 40.000000
|
||||
col=0.500000 0.250000 0.125000
|
||||
col2=1.000000 1.000000
|
||||
Reference in New Issue
Block a user