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 @@
List__i32{items: [*]i32@0xADDR, len: 5, cap: 8}

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,9 @@
arr.len = 5
arr[1..4] = [1, 4, 1]
sub.len = 3
arr[..3] = [3, 1, 4]
arr[2..] = [4, 1, 5]
sl[1..4] = [20, 30, 40]
mid[1..] = [30, 40]
msg[6..11] = world
msg[..5] = hello

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,5 @@
before: Vec2{x: 1.000000, y: 2.000000}
after: Vec2{x: 99.000000, y: 2.000000}
copy: Vec2{x: 99.000000, y: 2.000000}
mp[0] = 10
mp[2] = 30

View File

@@ -0,0 +1,2 @@
inside push
after push

View File

@@ -0,0 +1,2 @@
dpi=2.000000
delta=0.500000 fc.a=1.000000

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1 @@
tag = 42

View File

@@ -0,0 +1,3 @@
Box.init (named-var): ok
make_box (inline-xx): ok
Box.init (inline-xx): ok

View File

@@ -0,0 +1,4 @@
recovered == gpa? true
alloc count after first alloc: 1
recovered2 == gpa? true
alloc count after dealloc: 0

View File

@@ -0,0 +1 @@
Tracer.count = 1

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,2 @@
alloc_count = 1
dealloc_count = 1

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
=== 17. Slice Ptr ===
sl-ptr[0]: 20
sl-ptr[1]: 30

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,9 @@
create: 7 42
pipe-create: 1
dot-create: 2
alloc: 10 40 len=4
clone: 10 (orig 99)
resize: 20 60 len=6
shrink: 99 20 len=2
realloc: 1234
TrackingAllocator: allocs=8 deallocs=8 outstanding=0 total_alloc_bytes=184

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
full capacity: true true pos=128
over: true
reset: 0