1
0
Fork 0
Commit graph

1 commit

Author SHA1 Message Date
06dbc88a2e test(polls): cover tallying, the poll service and the Discord embed
54 cases across three files.

- Pure: the highest-tier weight rule, decimal weights tying exactly, multi-select
  counting one turnout per voter, dead options ignored, and every rung of the
  tie ladder including the cases where the initiator cannot discriminate.
- Service, against the real database: idempotent launch, vote replace and
  retract, single-answer rejection, role gating, weight resolution at close,
  initiator tie, superuser tie with a refused non-tied key, the deadline
  fallback, the result flag, double close, and a vote after close.
- Embed: anonymous polls never name voters, public ones do, buttons chunk into
  rows of five and disable once voting ends, and the hash moves on a vote, a
  name, and a resolution.
2026-12-01 14:17:54 -05:00