-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lthooks show test files 2023-06-01 release
- tests for arguments - show test file frozen for the 2023-06-01 release - show test file for the latest release, will be used to change `\ShowHook` in a forthcoming PR No date change, no code change
- Loading branch information
Showing
6 changed files
with
2,973 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
% Frozen to the 2023-06-01 release. | ||
|
||
\input{regression-test} | ||
\RequirePackage[2023-06-01]{latexrelease} | ||
\TYPE{********* RequirePackage[2023-06-01]{latexrelease}} | ||
\RequirePackage{./lthooks-show} | ||
|
||
\ExplSyntaxOn | ||
\debug_on:n { check-declarations , deprecation } | ||
\ExplSyntaxOff | ||
|
||
\documentclass{article} | ||
|
||
% There are many different hook profiles. | ||
|
||
\START | ||
|
||
\TESTBlockHookEnv | ||
{Undefined environment envA} | ||
{envA} | ||
\NewDocumentEnvironment | ||
{envA}{} | ||
{\TYPE{<BEGIN{envA}>}} | ||
{\TYPE{<END{envA}>}} | ||
\begin{envA}\TYPE{<envA BODY>}\end{envA} | ||
|
||
\NewDocumentEnvironment | ||
{envB}{} | ||
{\TYPE{<BEGIN{envB}>}} | ||
{\TYPE{<END{envB}>}} | ||
\TESTBlockHookEnv | ||
{Defined environment envB} | ||
{envB} | ||
\begin{envB}\TYPE{<envB BODY>}\end{envB} | ||
|
||
\TESTBlockHookCmd | ||
{Undefined command with no arguments} | ||
{cmdA} | ||
\NewDocumentCommand\cmdA{}{\TYPE{<cmdA BODY>}} | ||
\cmdA | ||
|
||
\NewDocumentCommand\cmdB{}{\TYPE{<cmdB BODY>}} | ||
\TESTBlockHookCmd | ||
{Defined command with no arguments} | ||
{cmdB} | ||
\cmdA | ||
|
||
\TESTBlockHookCmdWithArgs | ||
{Undefined with two arguments} | ||
{cmdTwoArgsA} | ||
{2} | ||
\NewDocumentCommand\cmdTwoArgsA{mm}{\TYPE{<cmdTwoArgsA BODY: /#1/#2/>}} | ||
\cmdTwoArgsA{argA 1}{argA 2} | ||
|
||
\NewDocumentCommand\cmdTwoArgsB{mm}{\TYPE{<cmdTwoArgsB BODY: /#1/#2/>}} | ||
\TESTBlockHookCmdWithArgs | ||
{Defined with two arguments} | ||
{cmdTwoArgsB} | ||
{2} | ||
\cmdTwoArgsB{argB 1}{argB 2} | ||
|
||
\TESTBlockHookCustomGeneric | ||
{CUSTOM GENERIC HOOK} | ||
{CUSTOM GENERIC HOOK} | ||
|
||
\TESTBlockHook | ||
{OTHER HOOK: Undeclared} | ||
{UNDECLARED HOOK} | ||
|
||
\NewHook{DECLARED HOOK} | ||
|
||
\TESTBlockHook | ||
{OTHER HOOK: declared} | ||
{DECLARED HOOK} | ||
|
||
\NewReversedHook{DECLARED REVERSED} | ||
|
||
\TESTBlockHook | ||
{OTHER HOOK: declared reversed} | ||
{DECLARED REVERSED} | ||
|
||
\NewHookWithArguments | ||
{WITH TWO ARGUMENTS} | ||
{2} | ||
|
||
\TESTBlockHookWithArgs | ||
{OTHER HOOK: with two arguments} | ||
{WITH TWO ARGUMENTS} | ||
{2} | ||
|
||
\NewReversedHookWithArguments | ||
{REVERSED WITH TWO ARGUMENTS} | ||
{2} | ||
|
||
\TESTBlockHookWithArgs | ||
{OTHER HOOK: reversed with two arguments} | ||
{REVERSED WITH TWO ARGUMENTS} | ||
{2} | ||
|
||
\OMIT | ||
\begin{document} | ||
\TIMO | ||
|
||
\BEGINTEST{After \begin{document}} | ||
|
||
\BEGINTEST{Commands} | ||
\cmdA | ||
\SEPARATOR | ||
\cmdB | ||
\SEPARATOR | ||
\cmdTwoArgsA{argA 1}{argA 2} | ||
\SEPARATOR | ||
\cmdTwoArgsB{argB 1}{argB 2} | ||
\ENDTEST | ||
|
||
\ENDTEST | ||
|
||
|
||
\TYPE{!!!! If this test changes the documentation needs updating !!!!} | ||
|
||
\END |
Oops, something went wrong.