[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: Add rollforward test file for \NewModuleRelease (2f53763e)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Mar 18 03:33:51 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh479
Link       : https://github.com/latex3/latex2e/commit/2f53763e6d0a3f3af31c06fa41c07325efc6e699

>---------------------------------------------------------------

commit 2f53763e6d0a3f3af31c06fa41c07325efc6e699
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Mar 17 23:33:51 2021 -0300

    Add rollforward test file for \NewModuleRelease


>---------------------------------------------------------------

2f53763e6d0a3f3af31c06fa41c07325efc6e699
 base/testfiles/github-0479b.lvt                    | 14 ++---
 .../{github-0479b.lvt => github-0479c.lvt}         | 34 ++++++------
 .../{github-0479b.tlg => github-0479c.tlg}         | 62 +++++++++++++++++-----
 3 files changed, 75 insertions(+), 35 deletions(-)

diff --git a/base/testfiles/github-0479b.lvt b/base/testfiles/github-0479b.lvt
index 9e5a493b..4c6b43b4 100644
--- a/base/testfiles/github-0479b.lvt
+++ b/base/testfiles/github-0479b.lvt
@@ -27,7 +27,7 @@
 
 \input{test2e}
 
-% Faking LaTeX 2021-11-01
+% Faking LaTeX 2021-11-01, rolling back
 \def\fmtversion{2021-11-01}
 \def\reserved at a#1-#2-#3-{#1#2#3}
 \edef\sourceLaTeXdate{\expandafter\reserved at a\fmtversion- }
@@ -54,10 +54,12 @@
   \catcode`\^^@=12
   \everyeof{\stopstop\expandafter\x\noexpand}%
   \long\def\x#1\edef\latexreleaseversion#2#3%
-          \let\currentLaTeXdate\requestedLaTeXdate#4\stopstop{%
-    \edef\x{\endgroup\unexpanded{\edef\x{%   V\--------V change date
-      \unexpanded{#1\edef\latexreleaseversion{\fmtversion}#3%
-          \let\currentLaTeXdate\requestedLaTeXdate}}}}}%
+          \let\currentLaTeXdate\requestedLaTeXdate\ExplSyntaxOn{%
+    \edef\x{\unexpanded{\edef\x{\endgroup %  V--------V change date
+      \unexpanded{#1\def\latexreleaseversion{2021-11-01}#3%
+          \let\currentLaTeXdate\requestedLaTeXdate}%
+      \unexpanded\expandafter{\y}}}}\ExplSyntaxOn
+    \long\def\y##1\ExplSyntaxOff##2\stopstop{\edef\y{\unexpanded{##1}}}\y}%
   \expandafter\expandafter\expandafter\x\@@input latexrelease.sty \relax
 \x
 % \end{steal code from latexrelease.sty}
@@ -121,7 +123,7 @@
 
 \START
 
-\RequirePackage[current]{test-latexrelease}
+\RequirePackage[2021-11-01]{test-latexrelease}
 \edef\x{\A}\show\x \show\B \show\C \show\D
 
 \unloadlatexrelease{1}
diff --git a/base/testfiles/github-0479b.lvt b/base/testfiles/github-0479c.lvt
similarity index 85%
copy from base/testfiles/github-0479b.lvt
copy to base/testfiles/github-0479c.lvt
index 9e5a493b..89b5bbf4 100644
--- a/base/testfiles/github-0479b.lvt
+++ b/base/testfiles/github-0479c.lvt
@@ -27,19 +27,13 @@
 
 \input{test2e}
 
-% Faking LaTeX 2021-11-01
-\def\fmtversion{2021-11-01}
+% Faking LaTeX 2020-02-02, rolling forward
+\def\fmtversion{2020-02-02}
 \def\reserved at a#1-#2-#3-{#1#2#3}
 \edef\sourceLaTeXdate{\expandafter\reserved at a\fmtversion- }
 
 % Code (supposedly) built into the kernel:
-\ExplSyntaxOn
-\cs_new:Npn \__internal_A: { changed~internal }
-\cs_new:Npn \A { \__internal_A: }
-\cs_new:Npn \B { altered }
-\cs_new:Npn \C { meeto }
-\cs_new:Npn \D { }
-\ExplSyntaxOff
+% ...
 
 \begin{filecontents}{test-latexrelease.sty}
 % \begin{steal code from latexrelease.sty}
@@ -54,10 +48,12 @@
   \catcode`\^^@=12
   \everyeof{\stopstop\expandafter\x\noexpand}%
   \long\def\x#1\edef\latexreleaseversion#2#3%
-          \let\currentLaTeXdate\requestedLaTeXdate#4\stopstop{%
-    \edef\x{\endgroup\unexpanded{\edef\x{%   V\--------V change date
-      \unexpanded{#1\edef\latexreleaseversion{\fmtversion}#3%
-          \let\currentLaTeXdate\requestedLaTeXdate}}}}}%
+          \let\currentLaTeXdate\requestedLaTeXdate\ExplSyntaxOn{%
+    \edef\x{\unexpanded{\edef\x{\endgroup %  V--------V change date
+      \unexpanded{#1\def\latexreleaseversion{2021-11-01}#3%
+          \let\currentLaTeXdate\requestedLaTeXdate}%
+      \unexpanded\expandafter{\y}}}}\ExplSyntaxOn
+    \long\def\y##1\ExplSyntaxOff##2\stopstop{\edef\y{\unexpanded{##1}}}\y}%
   \expandafter\expandafter\expandafter\x\@@input latexrelease.sty \relax
 \x
 % \end{steal code from latexrelease.sty}
@@ -121,21 +117,27 @@
 
 \START
 
-\RequirePackage[current]{test-latexrelease}
+\RequirePackage[2020-02-02]{test-latexrelease}
 \edef\x{\A}\show\x \show\B \show\C \show\D
 
 \unloadlatexrelease{1}
 
-\RequirePackage[2021-05-01]{test-latexrelease}
+\RequirePackage[2020-10-01]{test-latexrelease}
 \edef\x{\A}\show\x \show\B \show\C \show\D
 
 \unloadlatexrelease{2}
 
-\RequirePackage[2020-10-01]{test-latexrelease}
+\RequirePackage[2021-05-01]{test-latexrelease}
 \edef\x{\A}\show\x \show\B \show\C \show\D
 
 \unloadlatexrelease{3}
 
+\RequirePackage[2021-11-01]{test-latexrelease}
+\edef\x{\A}\show\x \show\B \show\C \show\D
+
+\unloadlatexrelease{4}
+
+% Go back 20 2020-02-02
 \RequirePackage[2020-02-02]{test-latexrelease}
 \edef\x{\A}\show\x \show\B \show\C \show\D
 
diff --git a/base/testfiles/github-0479b.tlg b/base/testfiles/github-0479c.tlg
similarity index 73%
copy from base/testfiles/github-0479b.tlg
copy to base/testfiles/github-0479c.tlg
index 79717160..78adcf56 100644
--- a/base/testfiles/github-0479b.tlg
+++ b/base/testfiles/github-0479c.tlg
@@ -7,16 +7,52 @@ LaTeX Warning: You have requested package `test-latexrelease',
 Package: latexrelease ....-..-.. v... LaTeX release emulation and tests (including releases up to ....-..-..)
 Package latexrelease Warning: Current format date selected, no patches applied.
 )
+! Undefined control sequence.
+l. ...\edef\x{\A
+                }\show\x \show\B \show\C \show\D
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
 > \x=macro:
-->changed internal.
+->.
+l. ...\edef\x{\A}\show\x
+                         \show\B \show\C \show\D
+> \B=undefined.
+l. ...\edef\x{\A}\show\x \show\B
+                                 \show\C \show\D
+> \C=undefined.
+l. ...\edef\x{\A}\show\x \show\B \show\C
+                                         \show\D
+> \D=undefined.
+l. ...\edef\x{\A}\show\x \show\B \show\C \show\D
+(test-latexrelease.sty (latexrelease.sty)
+LaTeX Info: Redefining \IfTargetDateBefore on input line ....
+LaTeX Warning: You have requested package `test-latexrelease',
+               but the package provides `latexrelease'.
+Package: latexrelease ....-..-.. v... LaTeX release emulation and tests (including releases up to ....-..-..)
+BEGIN module: lttestmodule (....-..-..) on input line ....
+Applying module lttestmodule on input line ....
+Skipping: [....-..-..] change \__internal_A:  on input line ....
+Skipping: [....-..-..] change \__internal_A:  on input line ....
+Applying: [....-..-..] change \__internal_A:  on input line ....
+Skipping: [....-..-..] change \B  on input line ....
+Applying: [....-..-..] change \B  on input line ....
+Skipping: [....-..-..] change \C  on input line ....
+Applying: [....-..-..] change \C  on input line ....
+END module: lttestmodule (....-..-..) on input line ....
+)
+> \x=macro:
+->original.
 l. ...\edef\x{\A}\show\x
                          \show\B \show\C \show\D
 > \B=\long macro:
-->altered.
+->.
 l. ...\edef\x{\A}\show\x \show\B
                                  \show\C \show\D
 > \C=\long macro:
-->meeto.
+->.
 l. ...\edef\x{\A}\show\x \show\B \show\C
                                          \show\D
 > \D=\long macro:
@@ -28,7 +64,7 @@ LaTeX Warning: You have requested package `test-latexrelease',
                but the package provides `latexrelease'.
 Package: latexrelease ....-..-.. v... LaTeX release emulation and tests (including releases up to ....-..-..)
 BEGIN module: lttestmodule (....-..-..) on input line ....
-Skipping module lttestmodule on input line ....
+Applying module lttestmodule on input line ....
 Skipping: [....-..-..] change \__internal_A:  on input line ....
 Applying: [....-..-..] change \__internal_A:  on input line ....
 Already applied: [....-..-..] change \__internal_A:  on input line ....
@@ -59,26 +95,26 @@ LaTeX Warning: You have requested package `test-latexrelease',
                but the package provides `latexrelease'.
 Package: latexrelease ....-..-.. v... LaTeX release emulation and tests (including releases up to ....-..-..)
 BEGIN module: lttestmodule (....-..-..) on input line ....
-Skipping module lttestmodule on input line ....
-Skipping: [....-..-..] change \__internal_A:  on input line ....
-Skipping: [....-..-..] change \__internal_A:  on input line ....
+Applying module lttestmodule on input line ....
 Applying: [....-..-..] change \__internal_A:  on input line ....
-Skipping: [....-..-..] change \B  on input line ....
+Already applied: [....-..-..] change \__internal_A:  on input line ....
+Already applied: [....-..-..] change \__internal_A:  on input line ....
 Applying: [....-..-..] change \B  on input line ....
-Skipping: [....-..-..] change \C  on input line ....
+Already applied: [....-..-..] change \B  on input line ....
 Applying: [....-..-..] change \C  on input line ....
+Already applied: [....-..-..] change \C  on input line ....
 END module: lttestmodule (....-..-..) on input line ....
 )
 > \x=macro:
-->original.
+->changed internal.
 l. ...\edef\x{\A}\show\x
                          \show\B \show\C \show\D
 > \B=\long macro:
-->.
+->altered.
 l. ...\edef\x{\A}\show\x \show\B
                                  \show\C \show\D
 > \C=\long macro:
-->.
+->metoo.
 l. ...\edef\x{\A}\show\x \show\B \show\C
                                          \show\D
 > \D=\long macro:
@@ -90,7 +126,7 @@ LaTeX Warning: You have requested package `test-latexrelease',
                but the package provides `latexrelease'.
 Package: latexrelease ....-..-.. v... LaTeX release emulation and tests (including releases up to ....-..-..)
 BEGIN module: lttestmodule (....-..-..) on input line ....
-Skipping module lttestmodule on input line ....
+Applying module lttestmodule on input line ....
 Skipping: [....-..-..] change \__internal_A:  on input line ....
 Skipping: [....-..-..] change \__internal_A:  on input line ....
 Skipping: [....-..-..] change \__internal_A:  on input line ....





More information about the latex3-commits mailing list.