Repository navigation
test(libSceFont): cover the limits of sceFontStringRefersRenderCharacters - #12794
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
…ters sceFontStringRefersRenderCharacters had no test. The new one builds strings from a text source and checks the cases that do not depend on bidirectional text: an empty string gives no characters and a count of zero, a missing count output or string gives a null result, no start character means the first one, and a start or last character that lies before or after the characters of the string, or a start after the last character, gives no characters. Sub-ranges of a left-to-right run return the start character and the number of characters from start to last. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…mes from The results of sceFontStringRefersRenderCharacters come from our shadPS4-based port and are unmeasured; the new test pins only the cases that do not depend on the bidirectional rules, so the debt file now says so. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
75b9a3e to
754278e
Compare
|
Rebased onto AI-assisted (Claude Code). |
# Conflicts: # docs/dev/debt/libSceFont.md
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (10, not counted against this PR)Validation IDs already present on main (4 IDs in 727 tests)Skipped (9)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
What
Adds a test for
sceFontStringRefersRenderCharacters, which had none. The test builds strings from a text source and checks the cases that do not depend on bidirectional text: an empty string gives no characters and a count of zero, a missing count output or string gives a null result, no start character means the first one, a start or last character before or after the characters of the string, or a start after the last character, gives no characters, and sub-ranges of a left-to-right run return the start character and the number of characters from start to last.The first commit adds the test; the library code is unchanged. The second commit adds an entry for the function to the libSceFont technical debt: it follows the shadPS4 implementation (
src/core/libraries/font/font.cpp, commit 0614ce324b), its results are unmeasured on a console, and the test does not cover the widening of the range over bidirectional levels, the handling of cluster and synthetic characters or the trimming at the end. Four of the local titles import the function (imported, not measured as called).Tested
Windows 10 (MinGW GCC 15.2, Release) and WSL2 Ubuntu 24.04 (GCC 13.3, Release; virtualised kernel, not bare-metal), on this head over
main951f374:ctest -R guest_font_render_characters --repeat until-fail:3passes 3 of 3 on both.guest_font*tests pass on Windows (12 of 12, including this one).tools/check_conventions.py --base upstream/mainpasses.Not tested: macOS, bidirectional text.
Overlap
I took the changed files of each of the 1450 other open pull requests from
git diff --name-onlyagainst its merge base. Three of them changecore/libs/prx/libSceFont/CMakeLists.txt: #12018, #12025 and #8250. Six changedocs/dev/debt/libSceFont.md: #12870, #12869, #12867, #12757, #12674 and #8250. None changes the new test file.git merge-treeagainstmain951f374: this head alone merges cleanly, and so do its pairs with #12870, #12869, #12867, #12674, #12025 and #12018. The pairs with #12757 and #8250 conflict, but each of them conflicts withmainon its own.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).
🤖 Generated with Claude Code