tests: characters, names, the encountered list and migration step 7 (#23)

This commit is contained in:
2026-11-15 12:01:30 +01:00
parent 20dcb87afb
commit f134534c6c
5 changed files with 1064 additions and 18 deletions
+7 -6
View File
@@ -40,7 +40,7 @@ suite "envelope (6.5 step 2)":
test "the catalogue is the 29 intents of 6.1 and the built set is a subset":
check IntentCatalogue.len == 29
check ImplementedIntents.len == 13 # slice 3's five + slice 4's four walls + slice 5's four token intents
check ImplementedIntents.len == 28 # 29 - `scene.set`, which is slice 10
for t in ImplementedIntents:
check t in IntentCatalogue
check isCatalogueIntent(t)
@@ -63,11 +63,12 @@ suite "envelope (6.5 step 2)":
check isGmOnlyIntent(t) # walls are GM-only (3.1, T2)
for t in ["token.create", "token.update", "token.move", "token.remove"]:
check isImplementedIntent(t)
check not isImplementedIntent("player.setname")
check not isImplementedIntent("scene.set")
check not isImplementedIntent("token.resize")
check not isImplementedIntent("status.set")
check not isImplementedIntent("character.create")
for t in ["player.setname", "player.rename", "key.show", "token.resize", "status.set",
"status.clear", "prop.set", "prop.unset", "character.create", "character.update",
"character.remove", "character.reassign", "name.reveal", "name.reveal_all",
"encountered.remove"]:
check isImplementedIntent(t)
check not isImplementedIntent("scene.set") # the only catalogue intent left for slice 10
suite "intent rate limit (6.4: 30/s, burst 100)":
test "a fresh bucket allows exactly the burst, then refuses":