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,4 @@
dot: 0.000000
cross: [0.000000, 0.000000, 1.000000]
length: 5.000000
norm: [0.600000, 0.800000, 0.000000]

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View 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

View File

@@ -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) = ---;
| ^^^^^^^

View File

@@ -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) = ---;
| ^^^^^^^^^^

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
v0=1.000000 v2=3.000000 v3=4.000000

View File

@@ -0,0 +1 @@
1

View File

@@ -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) = ---;
| ^

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View 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