[latex3-commits] [git/LaTeX3-latex3-latex3] master: Clarify a test file (aebfb65)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 17 17:15:21 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/aebfb6552b5c92772ea77586ba4dae4978735b6a

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

commit aebfb6552b5c92772ea77586ba4dae4978735b6a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 17 16:15:21 2018 +0100

    Clarify a test file


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

aebfb6552b5c92772ea77586ba4dae4978735b6a
 l3packages/xparse/testfiles/xparse002.luatex.tlg |   15 ++--------
 l3packages/xparse/testfiles/xparse002.lvt        |   32 +++++++++++-----------
 l3packages/xparse/testfiles/xparse002.tlg        |   15 ++--------
 3 files changed, 20 insertions(+), 42 deletions(-)

diff --git a/l3packages/xparse/testfiles/xparse002.luatex.tlg b/l3packages/xparse/testfiles/xparse002.luatex.tlg
index c741c51..c4e966d 100644
--- a/l3packages/xparse/testfiles/xparse002.luatex.tlg
+++ b/l3packages/xparse/testfiles/xparse002.luatex.tlg
@@ -268,7 +268,7 @@ control sequence to too much text. How can we recover?
 My plan is to forget the whole thing and hope for the best.
 ============================================================
 ============================================================
-TEST 6: Optional argument tests (expect paired TRUEs and FALSEs)
+TEST 6: Optional argument tests
 ============================================================
 .................................................
 . LaTeX info: "xparse/define-command"
@@ -276,9 +276,6 @@ TEST 6: Optional argument tests (expect paired TRUEs and FALSEs)
 . Defining command \foo with sig. 'om' on line ....
 .................................................
 TRUE
-TRUE
-FALSE
-FALSE
 FALSE
 FALSE
 .................................................
@@ -289,28 +286,20 @@ FALSE
 FALSE
 FALSE
 FALSE
-FALSE
-FALSE
-FALSE
 .................................................
 . LaTeX info: "xparse/redefine-command"
 . 
 . Redefining command \foo with sig. 'sm' on line ....
 .................................................
 TRUE
-TRUE
-FALSE
 FALSE
 .................................................
 . LaTeX info: "xparse/redefine-command"
 . 
 . Redefining command \foo with sig. 'mt+' on line ....
 .................................................
-TRUE
-TRUE
-FALSE
-FALSE
 FALSE
+TRUE
 FALSE
 ============================================================
 ============================================================
diff --git a/l3packages/xparse/testfiles/xparse002.lvt b/l3packages/xparse/testfiles/xparse002.lvt
index d92699c..5b39987 100644
--- a/l3packages/xparse/testfiles/xparse002.lvt
+++ b/l3packages/xparse/testfiles/xparse002.lvt
@@ -110,26 +110,26 @@
   \foo j \par
 }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\TEST{Optional~argument~tests~(expect~paired~TRUEs~and~FALSEs)}{
+\TEST{Optional~argument~tests}{
   \DeclareDocumentCommand \foo { o m }
-    { \IfNoValueTF {#1} \TRUE \FALSE #2 }
-  \foo            { \TRUE }
-  \foo [ ]        { \FALSE }
-  \foo [ \FALSE ] { \FALSE }
+    { \IfNoValueTF {#1} \TRUE \FALSE }
+  \foo            { foo }
+  \foo [ ]        { foo }
+  \foo [ foo ] { foo }
   \DeclareDocumentCommand \foo { D<>{default} m }
-    { \IfNoValueTF {#1} \TRUE \FALSE #2 }
-  \foo            { \FALSE }
-  \foo < >        { \FALSE }
-  \foo < \FALSE > { \FALSE }
+    { \IfNoValueTF {#1} \TRUE \FALSE }
+  \foo            { foo }
+  \foo < >        { foo }
+  \foo < foo > { foo }
   \DeclareDocumentCommand \foo { s m }
-    { \IfBooleanTF #1 \TRUE \FALSE #2 }
-  \foo *           { \TRUE }
-  \foo             { \FALSE }
+    { \IfBooleanTF #1 \TRUE \FALSE }
+  \foo *           { foo }
+  \foo             { foo }
   \DeclareDocumentCommand \foo { m t+ }
-    { \IfBooleanTF #2 \TRUE \FALSE #1 }
-  \foo { \TRUE }    +
-  \foo { \FALSE }
-  \foo { \FALSE } ~ +
+    { \IfBooleanTF #2 \TRUE \FALSE }
+  \foo { foo }
+  \foo { foo } +
+  \foo { foo } ~ +
 }
 
 \TEST{Awkward~`NoValue'~checks~(expect~T/F/F/F/F)}{
diff --git a/l3packages/xparse/testfiles/xparse002.tlg b/l3packages/xparse/testfiles/xparse002.tlg
index 31e62f2..d91856f 100644
--- a/l3packages/xparse/testfiles/xparse002.tlg
+++ b/l3packages/xparse/testfiles/xparse002.tlg
@@ -268,7 +268,7 @@ control sequence to too much text. How can we recover?
 My plan is to forget the whole thing and hope for the best.
 ============================================================
 ============================================================
-TEST 6: Optional argument tests (expect paired TRUEs and FALSEs)
+TEST 6: Optional argument tests
 ============================================================
 .................................................
 . LaTeX info: "xparse/define-command"
@@ -276,9 +276,6 @@ TEST 6: Optional argument tests (expect paired TRUEs and FALSEs)
 . Defining command \foo with sig. 'om' on line ....
 .................................................
 TRUE
-TRUE
-FALSE
-FALSE
 FALSE
 FALSE
 .................................................
@@ -289,28 +286,20 @@ FALSE
 FALSE
 FALSE
 FALSE
-FALSE
-FALSE
-FALSE
 .................................................
 . LaTeX info: "xparse/redefine-command"
 . 
 . Redefining command \foo with sig. 'sm' on line ....
 .................................................
 TRUE
-TRUE
-FALSE
 FALSE
 .................................................
 . LaTeX info: "xparse/redefine-command"
 . 
 . Redefining command \foo with sig. 'mt+' on line ....
 .................................................
-TRUE
-TRUE
-FALSE
-FALSE
 FALSE
+TRUE
 FALSE
 ============================================================
 ============================================================





More information about the latex3-commits mailing list