tests: the map-scoped tables' example and rejected fixtures
examples/lang/permap (two maps, a chunked table with a negative, a positive and a missing chunk, constants and fn by name, a nested list, a cross-row @Ref, a reload shrinking in place, a bad file's file:line:col; built under arena strict with an @On frame root), --check fixtures for a wrong field, a wrong type, an unknown constant and a dangling cross-row @Ref, @Ref(PerMap) on an int, as PREFIX, and a @Unit warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2f4860ae71
commit
5a751434ac
17 changed files with 181 additions and 0 deletions
3
examples/lang/permap/maps/alpha/instances/-1_0.lres
Normal file
3
examples/lang/permap/maps/alpha/instances/-1_0.lres
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# the chunk west of the origin: {cx} is -1
|
||||
t1 { kind: MDL_TENT, x: -10.0, z: 3.0 }
|
||||
t2 { kind: 2, x: -20.5 }
|
||||
1
examples/lang/permap/maps/alpha/instances/0_2.lres
Normal file
1
examples/lang/permap/maps/alpha/instances/0_2.lres
Normal file
|
|
@ -0,0 +1 @@
|
|||
r1 { kind: 1, x: 3.0, z: 130.0 }
|
||||
6
examples/lang/permap/maps/alpha/props.lres
Normal file
6
examples/lang/permap/maps/alpha/props.lres
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# alpha's props: a constant by name, a nested list of records, a list of strings, a nested
|
||||
# record, a fn by name, and a cross-row @Ref (home names a row of alpha's spots.lres)
|
||||
tent { model: MDL_TENT, yaw: 90.0, role: "camp", home: "fire", tags: ["guy", "fly"],
|
||||
pts: [{ x: 1.0, z: 2.0 }, { x: 3.5, z: -4 }], at: { x: 5 }, pick: fn twice }
|
||||
bench { model: MDL_BENCH, scale: G_SCALE, lit: true, home: "" }
|
||||
sign { model: 3, role: "say \"hi\"" }
|
||||
2
examples/lang/permap/maps/alpha/spots.lres
Normal file
2
examples/lang/permap/maps/alpha/spots.lres
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fire { kind: "camp", x: 1.0 }
|
||||
view { kind: "view", x: -2.5 }
|
||||
Loading…
Add table
Add a link
Reference in a new issue