Skip to content

cardkit-server: sweep seeds in the bot-name collision test - #20

Merged
rotundtapir merged 1 commit into
mainfrom
feat/bot-name-sweep
Jul 29, 2026
Merged

rotundtapir merged 1 commit into
mainfrom
feat/bot-name-sweep

Conversation

@rotundtapir

Copy link
Copy Markdown
Owner

Carries over the stronger version of this test from the 500 app, which is where pickBotNames used to live. It sweeps 50 seeds instead of trusting one, and also asserts the picked names are unique among themselves.

Doing this lets 500 drop its copy in the adoption PR rather than keep testing code it no longer owns — and it tests cardkit's default pool and cardkit's helper, neither of which is game-specific, so this is where the coverage belongs.

Test-only.

🤖 Generated with Claude Code

https://claude.ai/code/session_019EH6XkA2oEhv4YnMXt8hbJ

Carries over the stronger version of this assertion from the 500 app, which is
where pickBotNames used to live: it sweeps 50 seeds rather than trusting one,
and also checks the picked names are unique among themselves.

This lets 500 drop its copy in the adoption PR instead of keeping a test for
code it no longer owns. The test exercises cardkit's default pool and cardkit's
helper, neither of which is game-specific, so the coverage belongs here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EH6XkA2oEhv4YnMXt8hbJ
Signed-off-by: rotund_tapir <rotund_tapir@protonmail.com>

@rotundtapir rotundtapir left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test-only, case-insensitive collision + uniqueness swept across 50 seeds, correctly relocated with the helper it tests. CI green, single commit authored/pushed by rotundtapir. Merging.

@rotundtapir
rotundtapir merged commit 1dcc2ec into main Jul 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant