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 @@
-3

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,4 @@
fp(3,4) = 7
fp(3,4) = 12
apply(add,5,6) = 11
apply(mul,5,6) = 30

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@

View 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 ===

View File

@@ -0,0 +1,2 @@
direct call works
closure call works

View File

@@ -0,0 +1,2 @@
cl f = 1
cl f = 0

View File

@@ -0,0 +1,3 @@
cb=15
r=15
q=6

View File

@@ -0,0 +1,4 @@
14
42
12
4.500000

View File

@@ -0,0 +1,3 @@
block=10
arrow=10
twice=7

View File

@@ -0,0 +1,2 @@
body
defer closure: 42