diff options
| author | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
| commit | 9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch) | |
| tree | 0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/object/object_test.go | |
| parent | 4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff) | |
| download | thehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz | |
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/object/object_test.go')
| -rw-r--r-- | internal/object/object_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/object/object_test.go b/internal/object/object_test.go new file mode 100644 index 0000000..251dc61 --- /dev/null +++ b/internal/object/object_test.go @@ -0,0 +1,13 @@ +package object + +import "testing" + +// TestBehaviorTypeSafespotIsNotActionType: BehaviorType must not return +// "safespot" (it is not a behavior.ActionType), or the generic verb gate +// treats a safespot-only object as an unknown action type. +func TestBehaviorTypeSafespotIsNotActionType(t *testing.T) { + def := &ObjectDef{Safespot: &SafespotConfig{}} + if got := def.BehaviorType(); got != "" { + t.Fatalf("BehaviorType(safespot-only) = %q, want empty", got) + } +} |
