[latex3-commits] [git/LaTeX3-latex3-latex3] luacmd: Add additional cases for primitive detection (42ac1563e)

Marcel Fabian Krüger tex at 2krueger.de
Fri Sep 11 22:42:27 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : luacmd
Link       : https://github.com/latex3/latex3/commit/42ac1563ece30c47d9b93b713a50b626f29ad4ab

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

commit 42ac1563ece30c47d9b93b713a50b626f29ad4ab
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Sep 11 22:21:46 2020 +0200

    Add additional cases for primitive detection


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

42ac1563ece30c47d9b93b713a50b626f29ad4ab
 l3kernel/testfiles/m3token002.luatex.tlg | 5 +++++
 l3kernel/testfiles/m3token002.lvt        | 7 ++++++-
 l3kernel/testfiles/m3token002.tlg        | 5 +++++
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/l3kernel/testfiles/m3token002.luatex.tlg b/l3kernel/testfiles/m3token002.luatex.tlg
index 1f2037afd..346db6dcd 100644
--- a/l3kernel/testfiles/m3token002.luatex.tlg
+++ b/l3kernel/testfiles/m3token002.luatex.tlg
@@ -316,6 +316,7 @@ FALSE
 FALSE
 FALSE
 ============================================================
+\mydimen=\count...
 ============================================================
 TEST 28: token_if_primitive
 ============================================================
@@ -326,6 +327,10 @@ FALSE
 TRUE
 TRUE
 TRUE
+TRUE
+FALSE
+FALSE
+TRUE
 ============================================================
 ============================================================
 TEST 29: cs_ _spec
diff --git a/l3kernel/testfiles/m3token002.lvt b/l3kernel/testfiles/m3token002.lvt
index 699b1ec87..77d9a886c 100644
--- a/l3kernel/testfiles/m3token002.lvt
+++ b/l3kernel/testfiles/m3token002.lvt
@@ -324,6 +324,7 @@
 
 \let\primitivegdef\gdef
 \def\gdef{\global\def}
+\newcount\mydimen
 \TESTEXP{token_if_primitive}{
   \token_if_primitive:NTF A          {\TRUE}{\FALSE} \NEWLINE
   \token_if_primitive:NTF \A         {\TRUE}{\FALSE} \NEWLINE
@@ -331,7 +332,11 @@
   \token_if_primitive:NTF \undefined {\TRUE}{\FALSE} \NEWLINE
   \token_if_primitive:NTF \write     {\TRUE}{\FALSE} \NEWLINE
   \token_if_primitive:NTF \def       {\TRUE}{\FALSE} \NEWLINE
-  \token_if_primitive:NTF \relax     {\TRUE}{\FALSE}
+  \token_if_primitive:NTF \relax     {\TRUE}{\FALSE} \NEWLINE
+  \token_if_primitive:NTF \span      {\TRUE}{\FALSE} \NEWLINE
+  \token_if_primitive:NTF &          {\TRUE}{\FALSE} \NEWLINE
+  \token_if_primitive:NTF \mydimen   {\TRUE}{\FALSE} \NEWLINE
+  \token_if_primitive:NTF \parindent {\TRUE}{\FALSE}
 }
 \let\gdef\primitivegdef
 
diff --git a/l3kernel/testfiles/m3token002.tlg b/l3kernel/testfiles/m3token002.tlg
index 2440e5b3b..f1916b639 100644
--- a/l3kernel/testfiles/m3token002.tlg
+++ b/l3kernel/testfiles/m3token002.tlg
@@ -316,6 +316,7 @@ FALSE
 FALSE
 FALSE
 ============================================================
+\mydimen=\count...
 ============================================================
 TEST 28: token_if_primitive
 ============================================================
@@ -326,6 +327,10 @@ FALSE
 TRUE
 TRUE
 TRUE
+TRUE
+FALSE
+FALSE
+TRUE
 ============================================================
 ============================================================
 TEST 29: cs_ _spec





More information about the latex3-commits mailing list.