Skip to content

A-MoreTesting: cover Deadline, Event, Echo, Storage - #9

Merged
jingyucodes merged 3 commits into
masterfrom
branch-A-MoreTesting
Sep 17, 2026
Merged

jingyucodes merged 3 commits into
masterfrom
branch-A-MoreTesting

Conversation

@jingyucodes

Copy link
Copy Markdown
Owner

Adds DeadlineTest, EventTest, TaskTypeTest, EchoTest, and extends
StorageTest/TaskListTest for previously-untested behavior.

Includes a follow-up fix updating EchoTest's expected strings to
match branch-A-Personality's wording changes, discovered while
merging master into this branch.

See commit messages for details.

jingyucodes and others added 3 commits September 17, 2026 22:22
Deadline, Event, TaskType, and Echo's entire dispatch switch had
zero tests, and Storage/TaskList only covered archive()/clearAll(),
leaving load(), save(), corrupted-line handling, and basic
add/get/remove/size untested.

Add DeadlineTest, EventTest, TaskTypeTest, and EchoTest (the last
driven through Echo#getResponse() so the dispatch logic can be
tested without console I/O: one case per command, the unrecognized-
command path, and the bye shortcut). Extend StorageTest with a
save-then-load round trip, a corrupted-line-skip case, and a
missing-file/folder case, and TaskListTest with add/get/remove/size.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
EchoTest's expected strings were written against Echo's original
console wording. Merging branch-A-Personality changed that wording
(e.g. "Got it." -> "Echoed!", the unknown-command message, the
goodbye message), which left several assertions comparing against
now-stale text rather than a real behavior regression.

Update each assertion to match the current, correct wording.
@jingyucodes
jingyucodes merged commit 0fe2f9e into master Sep 17, 2026
4 of 6 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.

1 participant