Skip to content

[203_28] Add unit tests for LaTeX proof environment export#3052

Merged
da-liii merged 1 commit intoMoganLab:mainfrom
Prthmsh7:203_28.md
Mar 30, 2026
Merged

[203_28] Add unit tests for LaTeX proof environment export#3052
da-liii merged 1 commit intoMoganLab:mainfrom
Prthmsh7:203_28.md

Conversation

@Prthmsh7
Copy link
Copy Markdown
Contributor

fixes #3007

Follow-up to #2990

What

Added targeted unit tests for proof and proof* LaTeX export in TeXmacs/tests/203_1.scm.

Why

  • Regression Prevention: Ensures the standard \begin{proof} environment is used instead of the legacy \noindent\textbf{Proof.
  • Correctness: Verifies proper environment structure, optional titles for proof*, and content preservation.

How

Added tests using existing test infrastructure to verify:

  • Mapping to \begin{proof} and \begin{proof}[Title]
  • Presence of \end{proof} and original content
  • Absence of legacy formatting

Validated with xmake run 203_1 (15 successful checks).

@Prthmsh7
Copy link
Copy Markdown
Contributor Author

@Yuki-Nagori Please review when free. Thanks!

Copy link
Copy Markdown
Contributor

@Yuki-Nagori Yuki-Nagori left a comment

Choose a reason for hiding this comment

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

LGTM

@da-liii da-liii merged commit 9e36897 into MoganLab:main Mar 30, 2026
1 check passed
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.

[203_26] Add unit tests for the latex conversion issue

3 participants