[latex3-commits] [git/LaTeX3-latex3-latex3] main: Restore a test (2a231831d)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon May 30 14:56:35 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/2a231831d1c2eacaebbd147b5c9ab713b8851ba4

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

commit 2a231831d1c2eacaebbd147b5c9ab713b8851ba4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon May 30 13:56:35 2022 +0100

    Restore a test


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

2a231831d1c2eacaebbd147b5c9ab713b8851ba4
 .../xtemplate/testfiles-broken/xtemplate004.tlg    |  0
 .../xtemplate004.lvt                               | 48 +---------------------
 l3packages/xtemplate/testfiles/xtemplate004.tlg    | 34 +++++++++++++++
 3 files changed, 35 insertions(+), 47 deletions(-)

diff --git a/l3packages/xtemplate/testfiles-broken/xtemplate004.tlg b/l3packages/xtemplate/testfiles-broken/xtemplate004.tlg
deleted file mode 100644
index e69de29bb..000000000
diff --git a/l3packages/xtemplate/testfiles-broken/xtemplate004.lvt b/l3packages/xtemplate/testfiles/xtemplate004.lvt
similarity index 61%
rename from l3packages/xtemplate/testfiles-broken/xtemplate004.lvt
rename to l3packages/xtemplate/testfiles/xtemplate004.lvt
index ae8d237a1..a517e8c1e 100644
--- a/l3packages/xtemplate/testfiles-broken/xtemplate004.lvt
+++ b/l3packages/xtemplate/testfiles/xtemplate004.lvt
@@ -71,55 +71,9 @@
       }
       { }
 
-  \UseTemplate {test}{tname2}{key=don't say hi}{X}     %still a bit strange
+  \UseTemplate {test}{tname2}{key=don't say hi}{X}
   \UseTemplate {test}{tname2}{key=A}{X}
   \UseTemplate {test}{tname2}{key=B}{X}
-
-\ERROR
 }
 
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% 20
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\TEST{Edit~instance~values}{
-
-  \DeclareInstance {test} {myinstance} {tname2} {}
-
-  \ShowInstanceValues {test} {myinstance}
-
-  \EditInstance {test} {myinstance} {int = 0 , key = B}
-
-  \ShowInstanceValues {test} {myinstance}
-
-  \UseInstance {test}{myinstance} {A}
-
-  \EditInstance {test} {myinstance} {int = 1, text = hi}
-
-  \UseInstance {test}{myinstance} {A}
-
-  \EditInstance {test} {myinstance} {}
-
-  \UseInstance {test}{myinstance} {A}
-
-  \EditInstance {test} {myinstance} {key = 1}
-
-  \EditInstance {notdefined} {myinstance} {key = 1}
-
-  \EditInstance {test} {myinstance} {key = 1}
-
-  \EditInstance {test} {myinstance} {key = A}
-
-  \UseInstance {test}{myinstance} {A}
-
-  \EditInstance {test} {myinstance} {key 2 = wrong}
-
-  \ShowInstanceValues {test} {myinstance}
-
-  \UseInstance {test}{myinstance} {A}
-\ERROR instance editing should not depend on template and should not replace
-       template code
-}
 \END
diff --git a/l3packages/xtemplate/testfiles/xtemplate004.tlg b/l3packages/xtemplate/testfiles/xtemplate004.tlg
new file mode 100644
index 000000000..dbeb68425
--- /dev/null
+++ b/l3packages/xtemplate/testfiles/xtemplate004.tlg
@@ -0,0 +1,34 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Frank Mittelbach
+============================================================
+TEST 1: Testing code interface: choices
+============================================================
+! Package xtemplate Error: The default choice 'key' was not declared for key
+(xtemplate)                'key'.
+For immediate help type H <return>.
+ ...                                              
+l. ...}
+The key 'key' takes a fixed list of choices and this list does not include
+'key'.
+Hi
+hello
+huh
+Hi
+! Package xtemplate Error: The default choice 'key' was not declared for key
+(xtemplate)                'key'.
+For immediate help type H <return>.
+ ...                                              
+l. ...}
+The key 'key' takes a fixed list of choices and this list does not include
+'key'.
+! Package xtemplate Error: The choice 'don'tsayhi' was not declared for key
+(xtemplate)                'key'.
+For immediate help type H <return>.
+ ...                                              
+l. ...}
+The key 'key' takes a fixed list of choices and this list does not include
+'don'tsayhi'.
+hello
+huh
+============================================================





More information about the latex3-commits mailing list.