aboutsummaryrefslogtreecommitdiff
path: root/internal/world/room_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-09 05:27:10 -0400
committerhistoria <[not public]>2026-07-09 05:27:10 -0400
commitc705ae942573984784ef501bf8198f61f5206ddd (patch)
treec964066f3a244002bf75cb50a877630f46496f81 /internal/world/room_test.go
parent74153c7814fc4cef988066ef04e38731a943bc12 (diff)
downloadthehouseoficarus-c705ae942573984784ef501bf8198f61f5206ddd.tar.gz
refactor: simplify yaml, remove support for old scalar fields
Diffstat (limited to 'internal/world/room_test.go')
-rw-r--r--internal/world/room_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/world/room_test.go b/internal/world/room_test.go
index 1ad974e..855eba5 100644
--- a/internal/world/room_test.go
+++ b/internal/world/room_test.go
@@ -27,11 +27,13 @@ objects:
- id: workbench
- name: window
hidden: true
- description: "A small window."
+ description:
+ - text: "A small window."
- id: control
name: instrument panel
aliases: [cockpit]
- description: "A panel."
+ description:
+ - text: "A panel."
`
// rebuild the path index so LoadRoom can find the room file
writeRoom(t, dir, body)
@@ -98,7 +100,8 @@ func TestExitDefUnmarshalAlwaysBlocked(t *testing.T) {
north:
room: 5
always_blocked: true
- south: 3
+ south:
+ room: 3
east:
room: 7
hidden: true