impl: fix accidental sharp sharp silently missing#178
Merged
Conversation
…er.cpp The accidentalMap in Converter.cpp was missing an entry for core::AccidentalValue::sharpSharp / api::Accidental::sharpSharp. As a result, <accidental>sharp-sharp</accidental> was silently lost on read (falling back to Accidental::none) and written back as natural on round-trip. Adds the missing one-row entry and a regression test that verifies sharpSharp survives an api round-trip through XML.
gen-quality
|
Coverage reportCore-dev coverage
|
| Metric | Coverage | Covered / Total |
|---|---|---|
| Lines | 77.9% | 28539 / 36619 |
| Functions | 74.4% | 6360 / 8547 |
| Branches | 50.7% | 22672 / 44725 |
API coverage src/private/mx/{api,impl,utility}/
| Metric | Coverage | Covered / Total |
|---|---|---|
| Lines | 68.7% | 4735 / 6896 |
| Functions | 54.8% | 1475 / 2692 |
| Branches | 40.3% | 3850 / 9558 |
Core HTML report | API HTML report
Commit 90f319be19810ddf0902e5e856e8fb17c199ce94.
This was referenced Jun 16, 2026
webern
added a commit
that referenced
this pull request
Jun 16, 2026
## Summary The `api-feature-audit` doc now doubles as a tracker. Added a Tracker table mapping every audited item to its GitHub issue or PR, plus a pointer near the top to the parent tracker issue. The three section-1a enum bugs are marked done against their fix PRs (#177, #178, #179). The remaining 16 items now have issues (#181-#196), all linked as sub-issues of #159, which was rewritten into a parent tracker with live checkboxes. ## References - Progresses #159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
accidentalMapinConverter.cppwas missing the entry forcore::AccidentalValue::sharpSharp()/api::Accidental::sharpSharp.<accidental>sharp-sharp</accidental>would silently lose the accidental on read (falling back toAccidental::none), and write it back asnaturalon round-trip — visible data loss.SharpSharp_PitchData) round-trips a note withAccidental::sharpSharpthrough the full serialize→deserialize path and asserts the value is preserved.Test plan
SharpSharp_PitchDatafails before the fix, passes after*_PitchData: 37 assertions in 8 test cases)make check(fmt-check) passes