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:
@@ -0,0 +1,23 @@
|
||||
error: cannot assign through constant 'WHITE' — constants are immutable (use a '=' global or a local copy for mutable data)
|
||||
--> examples/diagnostics/1162-diagnostics-const-write-rejected.sx:15:5
|
||||
|
|
||||
15 | WHITE.r = 0;
|
||||
| ^^^^^^^
|
||||
|
||||
error: cannot assign through constant 'K' — constants are immutable (use a '=' global or a local copy for mutable data)
|
||||
--> examples/diagnostics/1162-diagnostics-const-write-rejected.sx:16:5
|
||||
|
|
||||
16 | K[0] = 5;
|
||||
| ^^^^
|
||||
|
||||
error: cannot assign through constant 'K' — constants are immutable (use a '=' global or a local copy for mutable data)
|
||||
--> examples/diagnostics/1162-diagnostics-const-write-rejected.sx:17:5
|
||||
|
|
||||
17 | K[1] += 2;
|
||||
| ^^^^
|
||||
|
||||
error: cannot assign through constant 'N' — constants are immutable (use a '=' global or a local copy for mutable data)
|
||||
--> examples/diagnostics/1162-diagnostics-const-write-rejected.sx:18:5
|
||||
|
|
||||
18 | N = 9;
|
||||
| ^^^^^^
|
||||
Reference in New Issue
Block a user