Skip to content

test(sorting): prove stability of equal values - #32

Merged
salsadsid merged 1 commit into
salsadsid:mainfrom
PandaHUN777:test/sorting-stability
Oct 17, 2026
Merged

salsadsid merged 1 commit into
salsadsid:mainfrom
PandaHUN777:test/sorting-stability

Conversation

@PandaHUN777

Copy link
Copy Markdown
Contributor

Fixes #21.

Tracks original indices through the recorded swap and write steps to verify that bubble and insertion preserve equal-value order, while selection reverses the known [4, 4, 1] counterexample.

Verified in PRTEST: npm run lint; npm test (91 passed); npm run build; git diff --check.

@vercel

vercel Bot commented Sep 27, 2026

Copy link
Copy Markdown

@PandaHUN777 is attempting to deploy a commit to the salsadsid's projects Team on Vercel.

A member of the Team first needs to authorize it.

@salsadsid
salsadsid merged commit 754bfaa into salsadsid:main Oct 17, 2026
1 of 2 checks passed
@salsadsid

Copy link
Copy Markdown
Owner

Thanks @PandaHUN777! Merged. Following the original indices through the recorded steps is a neat way to prove stability, and it also guards the recorders against future changes. On current main: lint clean, 114/114 tests.

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.

Tests: prove which sorts are stable

2 participants