You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔴 Blocker: Test file deleted without replacement — This diff removes the entire tests/test_asm_beautifier.py (161 lines), but no corresponding addition or migration is shown. This will eliminate all unit tests for _parse_line, _gen_comment, beautify_asm, and CLI importability. Unless these tests are moved to another file in the same commit, coverage will drop and CI will likely break.
🟡 Suggestion: Verify test migration — If the tests are being relocated to a different file (e.g., test_asm.py), ensure the diff includes that addition. If they are intentionally removed, provide a commit message explaining why (e.g., replaced by integration tests, feature removed). Otherwise, consider keeping the file or deprecating it gradually.
🟡 Hardcoded column widths instead of constants — test_padding_caps_do_not_truncate_long_fields uses literal 30 and 40. If the cap constants change, the test silently breaks. Suggestion: reference MAX_LABEL_WIDTH / MAX_OPERAND_WIDTH (or whatever constants exist) so the test adapts automatically.
🟡 test_short_fields_use_minimum_widths relies on implicit comment addition — beautify_asm("ret\nadd a0,a1,a2") (no add_comments=False) assumes a comment is added to the ret line. ret_line.index("#") will raise ValueError if the default behavior changes. Suggestion: either pass add_comments=False and verify alignment without comments, or guard the assertion with a fallback.
💭 test_two_pass_alignment_normalizes_operands_and_preserves_comment — passes add_comments=False but still expects the original # sum comment to be preserved. If the parameter’s intent is “do not add extra comments”, the naming is ambiguous; consider clarifying the API or renaming the parameter.
💭 test_no_align_returns_original_newlines_and_whitespace — expects exact equality including \r\n. If the beautifier normalizes line endings under the hood, the test may fail on non‑Windows CI. Consider normalizing to \n before comparison or documenting the expected behavior.
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
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.
No description provided.