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

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
sum: 5
sum: 42
sum: 42.500000

View File

@@ -0,0 +1 @@
0

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,14 @@
v1: Vec3{data: [1.000000, 3.000000, 2.000000]}
v2: [1.000000, 3.000000, 2.000000]
buff: [0.000000, 2.000000, 3.500000, 4.000000, 0.000000]
comp: Foo{value: 42, count: 1}
add: [4.000000, 5.000000, 3.000000]
v2.x: 1.000000
v2[1]: 3.000000
scaled: [2.000000, 6.000000, 4.000000]
neg: [-1.000000, -3.000000, -2.000000]
sqrt(9): 3.000000
.user(0.500000)
4
16
8

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@
5

View File

@@ -0,0 +1 @@
178

View File

@@ -0,0 +1,3 @@
after set: 100.000000x50.000000
mid anim: 150.000000x75.000000
end anim: 200.000000x100.000000

View File

@@ -0,0 +1,5 @@
plain: 7
sized i32: 4
sized i64: 8
taking explicit: 42
taking inferred: 99

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
generic-into-block ok: a=10 b=20

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,3 @@
named: len=3 a0=10.000000 a2=30.000000
expr: len=3 e2=9.000000
copy: len=3 b2=30.000000

View File

@@ -0,0 +1,3 @@
named: len=3 a0=10 a2=30
expr: len=3 e2=9
copy: len=3 b2=30

View File

@@ -0,0 +1 @@
a.len=3 b.len=4

View File

@@ -0,0 +1,3 @@
box: 42
vec: 1.000000 4.000000
typefn: len=3 a0=10 a2=30

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1,8 @@
field: 3
method: 3
chain: 11
annot: ann
helper: 7
thing: 42
facade: 7
facade-annot: qq

View File

@@ -0,0 +1,5 @@
7
9
8
2
7

View File

@@ -0,0 +1,3 @@
9
1.500000
42

View File

@@ -0,0 +1,2 @@
direct=42
ufcs=42

View File

@@ -0,0 +1,5 @@
unbox=42
byval=42
second=2.500000
nested=9
ufcs=42