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/closures/expected/0300-closures-lambda.exit
Normal file
1
examples/closures/expected/0300-closures-lambda.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/closures/expected/0300-closures-lambda.stderr
Normal file
1
examples/closures/expected/0300-closures-lambda.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
examples/closures/expected/0300-closures-lambda.stdout
Normal file
1
examples/closures/expected/0300-closures-lambda.stdout
Normal file
@@ -0,0 +1 @@
|
||||
-3
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
16110
examples/closures/expected/0301-closures-fn-pointers.ir
Normal file
16110
examples/closures/expected/0301-closures-fn-pointers.ir
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
fp(3,4) = 7
|
||||
fp(3,4) = 12
|
||||
apply(add,5,6) = 11
|
||||
apply(mul,5,6) = 30
|
||||
1
examples/closures/expected/0302-closures-closures.exit
Normal file
1
examples/closures/expected/0302-closures-closures.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
examples/closures/expected/0302-closures-closures.stderr
Normal file
1
examples/closures/expected/0302-closures-closures.stderr
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
13
examples/closures/expected/0302-closures-closures.stdout
Normal file
13
examples/closures/expected/0302-closures-closures.stdout
Normal file
@@ -0,0 +1,13 @@
|
||||
basic: 142
|
||||
snapshot: 15
|
||||
clamp: 50 0 100
|
||||
[INFO] system ready
|
||||
factory: 105 110
|
||||
auto-promote: 21
|
||||
hof: 40
|
||||
reduce: 15
|
||||
compose: 30
|
||||
multi: 105 500
|
||||
widget: slider = 42
|
||||
widget: no handler
|
||||
=== DONE ===
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
direct call works
|
||||
closure call works
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
cl f = 1
|
||||
cl f = 0
|
||||
@@ -0,0 +1 @@
|
||||
2
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Tracer.count = 1
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
cb=15
|
||||
r=15
|
||||
q=6
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
14
|
||||
42
|
||||
12
|
||||
4.500000
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
block=10
|
||||
arrow=10
|
||||
twice=7
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
body
|
||||
defer closure: 42
|
||||
Reference in New Issue
Block a user