8000 test(board): date the day-after assertion from today by lexfrei · Pull Request #234 · aenix-io/aeman · GitHub
[go: up one dir, main page]

Skip to content

test(board): date the day-after assertion from today - #234

Merged
kvaps merged 1 commit into
mainfrom
fix/board-relative-day
Sep 19, 2026
Merged

kvaps merged 1 commit into
mainfrom
fix/board-relative-day

Conversation

@lexfrei
@lexfrei lexfrei commented Sep 18, 2026
Copy link
Copy Markdown
Contributor

The last assertion in TestTeamGridShowsASlotFromItsWeekUntilItIsDone used a hardcoded date, while every other date in that test is derived from TodayIso(). The literal stood for "the day after the card was finished", which stops being true once the calendar reaches it.

That misfires on exactly one day: the one where the literal lands on DoneAt. There the assertion asks whether the finish day itself still holds the card, and it does, so the test goes red on correct behaviour. On any other day the literal misses DoneAt, the grid is empty there, and the assertion passes without exercising the rule.

Now it asks for today, like the rest of the test.

Every other date in the finished-slot case is relative to today, but the
last assertion named a fixed day. It stood for "the day after the card
was finished", which is only what that literal means until the calendar
reaches it: on the day the two coincide the assertion asks whether the
finish day itself keeps the card, and the answer is yes, so it fails.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
8000
@kvaps kvaps left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Correct one-line fix. The literal date landed on DoneAt on exactly one calendar day and went red on correct behaviour; deriving it from today matches the rest of the test. This is the base of the stack, needed green for the four above it.

LGTM.

@kvaps
kvaps merged commit 78aae20 into main Sep 19, 2026
2 checks 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.

2 participants

0