[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Move m3expl009 test to latex3/latex2e (ff87c22) (8f88b362)

PhelypeOleinik phelype.oleinik at latex-project.org
Sun Aug 23 22:09:40 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/8f88b3626f7d583ee60236e10d51e41bf66f12de

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

commit 8f88b3626f7d583ee60236e10d51e41bf66f12de
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Aug 23 17:09:40 2020 -0300

    Move m3expl009 test to latex3/latex2e (ff87c22)


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

8f88b3626f7d583ee60236e10d51e41bf66f12de
 base/testfiles/m3expl009.lvt | 52 ++++++++++++++++++++++++++++++++++++++++++++
 base/testfiles/m3expl009.tlg | 25 +++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/base/testfiles/m3expl009.lvt b/base/testfiles/m3expl009.lvt
new file mode 100644
index 00000000..671939b5
--- /dev/null
+++ b/base/testfiles/m3expl009.lvt
@@ -0,0 +1,52 @@
+%
+% Copyright (C) 2020 The LaTeX3 Project
+%
+
+\input{regression-test}
+\RequirePackage{expl3}
+
+\START
+% \AUTHOR{Phelype Oleinik}
+
+% Yet another loading test :-)
+% This one checks that expl3 properly detects if it's
+% preloaded in an older format, raising an error as
+% appropriate, if the versions don't match.
+
+\ExplSyntaxOn
+\newcount\cnta
+\cs_new_protected:Npn \RELOAD
+  { \ExplSyntaxOn \RELOAD:n }
+\cs_new_protected:Npn \RELOAD:n #1
+  {
+    \ExplSyntaxOff
+    \cs_undefine:c { ver at expl3.sty }
+    \group_begin:
+      #1
+      \RequirePackage{expl3}
+    \group_end:
+  }
+\ExplSyntaxOff
+
+% If the version of expl3 preloaded in the kernel differs
+% from the one in expl3.sty we have a critical error:
+\RELOAD
+  { \tl_set:Nn \c__kernel_expl_date_tl { 0000-00-00 } }
+
+% If they are equal, though, nothing bad happens. This should
+% be the most common scenario.
+\RELOAD
+  { }
+
+% If this token list is not defined then we're on an earlier
+% version of expl3 anyway, so it's another critical error,
+% but no date is showed:
+\RELOAD
+  { \cs_set_eq:NN \c__kernel_expl_date_tl \tex_undefined:D }
+
+% Package mode can't be easily emulated in
+% this test file (and it's a bit pointless), but it works
+% when loading this version of expl3 in a 2018 TL LaTeX.
+% Yours truly,
+
+\END
diff --git a/base/testfiles/m3expl009.tlg b/base/testfiles/m3expl009.tlg
new file mode 100644
index 00000000..ba9ed017
--- /dev/null
+++ b/base/testfiles/m3expl009.tlg
@@ -0,0 +1,25 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+\cnta=\count...
+(../expl3.sty
+Package: expl3 ....-..-.. L3 programming layer (loader) 
+! Critical LaTeX3 Error: Mismatched expl3 detected! Loading expl3 will abort.
+(LaTeX3)                 
+(LaTeX3)                 The version of expl3 preloaded in LaTeX is
+(LaTeX3)                 ....-..-.., but the version of expl3 you are trying
+(LaTeX3)                 to load is dated ....-..-... This is most likely
+(LaTeX3)                 due to a stray format file in the user tree. Please
+(LaTeX3)                 make sure that your LaTeX format is updated.
+Type <return> to continue.
+ ...                                              
+l. ...      }
+LaTeX does not know anything more about this error, sorry.
+Try typing <return> to proceed.
+If that doesn't work, type X <return> to quit.
+Reading the current file 'expl3' will stop.
+) (../expl3.sty
+Package: expl3 ....-..-.. L3 programming layer (loader) 
+)
+(../expl3.sty
+Package: expl3 ....-..-.. L3 programming layer (loader) 
+)





More information about the latex3-commits mailing list.