Files
gastown/internal/beads/force_test.go
JJ b1a5241430 fix(beads): align agent bead prefixes and force multi-hyphen IDs (#482)
* fix(beads): align agent bead prefixes and force multi-hyphen IDs

* fix(checkpoint): treat threshold as stale at boundary
2026-01-16 12:33:51 -08:00

24 lines
499 B
Go

package beads
import "testing"
func TestNeedsForceForID(t *testing.T) {
tests := []struct {
id string
want bool
}{
{id: "", want: false},
{id: "hq-mayor", want: false},
{id: "gt-abc123", want: false},
{id: "hq-mayor-role", want: true},
{id: "st-stockdrop-polecat-nux", want: true},
{id: "hq-cv-abc", want: true},
}
for _, tc := range tests {
if got := NeedsForceForID(tc.id); got != tc.want {
t.Fatalf("NeedsForceForID(%q) = %v, want %v", tc.id, got, tc.want)
}
}
}