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/memory/expected/0800-memory-list.exit
Normal file
1
examples/memory/expected/0800-memory-list.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0800-memory-list.stderr
Normal file
1
examples/memory/expected/0800-memory-list.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
examples/memory/expected/0800-memory-list.stdout
Normal file
1
examples/memory/expected/0800-memory-list.stdout
Normal file
@@ -0,0 +1 @@
|
||||
List__i32{items: [*]i32@0xADDR, len: 5, cap: 8}
|
||||
1
examples/memory/expected/0801-memory-slices.exit
Normal file
1
examples/memory/expected/0801-memory-slices.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0801-memory-slices.stderr
Normal file
1
examples/memory/expected/0801-memory-slices.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
9
examples/memory/expected/0801-memory-slices.stdout
Normal file
9
examples/memory/expected/0801-memory-slices.stdout
Normal 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
|
||||
1
examples/memory/expected/0802-memory-pointers.exit
Normal file
1
examples/memory/expected/0802-memory-pointers.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0802-memory-pointers.stderr
Normal file
1
examples/memory/expected/0802-memory-pointers.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
5
examples/memory/expected/0802-memory-pointers.stdout
Normal file
5
examples/memory/expected/0802-memory-pointers.stdout
Normal 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
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
inside push
|
||||
after push
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
dpi=2.000000
|
||||
delta=0.500000 fc.a=1.000000
|
||||
1
examples/memory/expected/0805-memory-xx-userspace.exit
Normal file
1
examples/memory/expected/0805-memory-xx-userspace.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0805-memory-xx-userspace.stderr
Normal file
1
examples/memory/expected/0805-memory-xx-userspace.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
examples/memory/expected/0805-memory-xx-userspace.stdout
Normal file
1
examples/memory/expected/0805-memory-xx-userspace.stdout
Normal file
@@ -0,0 +1 @@
|
||||
tag = 42
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Box.init (named-var): ok
|
||||
make_box (inline-xx): ok
|
||||
Box.init (inline-xx): ok
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
recovered == gpa? true
|
||||
alloc count after first alloc: 1
|
||||
recovered2 == gpa? true
|
||||
alloc count after dealloc: 0
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Tracer.count = 1
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
alloc_count = 1
|
||||
dealloc_count = 1
|
||||
1
examples/memory/expected/0810-memory-slice-ptr.exit
Normal file
1
examples/memory/expected/0810-memory-slice-ptr.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0810-memory-slice-ptr.stderr
Normal file
1
examples/memory/expected/0810-memory-slice-ptr.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
3
examples/memory/expected/0810-memory-slice-ptr.stdout
Normal file
3
examples/memory/expected/0810-memory-slice-ptr.stdout
Normal file
@@ -0,0 +1,3 @@
|
||||
=== 17. Slice Ptr ===
|
||||
sl-ptr[0]: 20
|
||||
sl-ptr[1]: 30
|
||||
1
examples/memory/expected/0838-memory-helpers.exit
Normal file
1
examples/memory/expected/0838-memory-helpers.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/memory/expected/0838-memory-helpers.stderr
Normal file
1
examples/memory/expected/0838-memory-helpers.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
9
examples/memory/expected/0838-memory-helpers.stdout
Normal file
9
examples/memory/expected/0838-memory-helpers.stdout
Normal 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
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
full capacity: true true pos=128
|
||||
over: true
|
||||
reset: 0
|
||||
Reference in New Issue
Block a user