Skip to content

Follow-Up to #48: Add Paste Stack state tests - #50

Draft
alvst wants to merge 8 commits into
momenbasel:mainfrom
alvst:codex/paste-stack-state-tests
Draft

Follow-Up to #48: Add Paste Stack state tests#50
alvst wants to merge 8 commits into
momenbasel:mainfrom
alvst:codex/paste-stack-state-tests

Conversation

@alvst

@alvst alvst commented Jul 26, 2026

Copy link
Copy Markdown

Summary

Adds Pesty’s first SwiftPM test target and focused Paste Stack state coverage.

  • Verifies that deleting the active saved stack promotes the next deck.
  • Verifies pasted entries move behind pending entries and keep selection correct.
  • Verifies history-retention cleanup removes empty decks and promotes the remaining stack.
  • Verifies saved-stack Codable round-tripping preserves entry state.

PasteSequence now has an internal initializer so tests can run with isolated state instead of mutating the application singleton.

Dependency

Builds on #48 because it covers saved-deck deletion behavior.

Validation

  • swift test — 4 tests passed
  • git diff --check

@alvst alvst changed the title Add Paste Stack state tests Follow-Up to #48: Add Paste Stack state tests Jul 26, 2026
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