Skip to content

Add round-trip idempotency tests#62

Merged
sethdeckard merged 1 commit into
masterfrom
add-round-trip-tests
May 23, 2026
Merged

Add round-trip idempotency tests#62
sethdeckard merged 1 commit into
masterfrom
add-round-trip-tests

Conversation

@sethdeckard

Copy link
Copy Markdown
Owner

Add an all-fixtures sweep asserting that canonical output (a parsed playlist re-rendered) is a fixed point of parse-then- render, plus a seeded generator that builds varied media and master playlists and asserts the same property. These guard the reader and writer against round-trip asymmetries.

The generator uses a fixed RNG seed so results are deterministic across supported Ruby versions.

Add an all-fixtures sweep asserting that canonical output (a
parsed playlist re-rendered) is a fixed point of parse-then-
render, plus a seeded generator that builds varied media and
master playlists and asserts the same property. These guard
the reader and writer against round-trip asymmetries.

The generator uses a fixed RNG seed so results are
deterministic across supported Ruby versions.
@sethdeckard
sethdeckard merged commit c97bd57 into master May 23, 2026
4 checks passed
@sethdeckard
sethdeckard deleted the add-round-trip-tests branch May 23, 2026 13:16
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