blob: 251dc61bed8bb62276fab625f21813559d009045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
}
}
|