Skip to content

katex test [nfc]: Name the KaTeX tests without redundancy after split #1767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Jul 29, 2025

This is a small followup after #1729, cleaning up the KaTeX tests a bit more after splitting them from the other content tests.

Commit messages

cc0fb86 katex test [nfc]: Name the KatexExample statics without redundancy

The names beginning "mathBlockKatex…" were appropriate when the
namespace these lived on was the more general ContentExample.
But that prefix doesn't add anything when they're on KatexExample.

(The fact they're in math blocks instead of inline math spans isn't
part of the point of any of these examples.)

Similarly the descriptions can be shortened; and then in some cases
lengthened a bit again to say more about what each example is meant
to exercise or illustrate.

70b12af katex test [nfc]: Cut redundant group on KaTeX widget tests

This whole test file will be about KatexWidget and its associated
private widgets, whether reached via MathBlock or via InlineContent.
So a MathBlock group is no longer helpful, unlike when these tests
lived in content_test.dart.

@gnprice gnprice requested a review from rajveermalviya July 29, 2025 20:13
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Jul 29, 2025
Copy link
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this cleanup @gnprice! LGTM, Please merge at will.

gnprice added 2 commits July 30, 2025 12:04
The names beginning "mathBlockKatex…" were appropriate when the
namespace these lived on was the more general ContentExample.
But that prefix doesn't add anything when they're on KatexExample.

(The fact they're in math blocks instead of inline math spans isn't
part of the point of any of these examples.)

Similarly the descriptions can be shortened; and then in some cases
lengthened a bit again to say more about what each example is meant
to exercise or illustrate.
This whole test file will be about KatexWidget and its associated
private widgets, whether reached via MathBlock or via InlineContent.
So a MathBlock group is no longer helpful, unlike when these tests
lived in content_test.dart.
@gnprice gnprice merged commit 79edb40 into zulip:main Jul 30, 2025
1 check passed
@gnprice gnprice deleted the pr-katex-tests branch July 30, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants