feat(currency_wars): complete systems, settlement Rank SS, damage report, camera and recovery fixes
This commit is contained in:
1 parent
c008243f11
commit
0995055296
78 files changed
+33840
-9525
No files matched your search
@@ -176,3 +176,21 @@ func TestCurrencyWarsSnapshotRevisionPreventsStaleWrites(t *testing.T) {
|
||||
t.Fatalf("CW commit failed to preserve unrelated persistent data: %s", strings.TrimSpace(string(persistent)))
|
||||
}
|
||||
}
|
||||
|
||||
func TestCurrencyWarsReserveOwnedMaxStar(t *testing.T) {
|
||||
c := loadCurrencyWarsTestCatalog(t)
|
||||
pool, err := c.NewCapturedCardPool()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := pool.ReserveOwned(c, 130602, 4); err != nil {
|
||||
t.Fatalf("ReserveOwned for 4-star role: %v", err)
|
||||
}
|
||||
role := pool.Roles[130602]
|
||||
if role.Remaining != 0 {
|
||||
t.Fatalf("expected remaining to be 0, got %d", role.Remaining)
|
||||
}
|
||||
if !role.Disabled {
|
||||
t.Fatal("expected role to be disabled in pool")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user