[latex3-commits] [git/LaTeX3-latex3-latex3] master: Test \c_code_cctab matches the catcodes of the test setup (7746aa843)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jul 16 12:13:16 CEST 2020


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

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

commit 7746aa843c74312146eab262f2885687674345f7
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Mon Jun 29 06:39:04 2020 +0200

    Test \c_code_cctab matches the catcodes of the test setup


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

7746aa843c74312146eab262f2885687674345f7
 l3kernel/testfiles/m3cctab001.lvt | 10 ++++++++--
 l3kernel/testfiles/m3cctab001.tlg |  1 +
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/l3kernel/testfiles/m3cctab001.lvt b/l3kernel/testfiles/m3cctab001.lvt
index a5d1970f6..837e0b852 100644
--- a/l3kernel/testfiles/m3cctab001.lvt
+++ b/l3kernel/testfiles/m3cctab001.lvt
@@ -54,13 +54,19 @@
 \TEST { cctab_begin / code~in~iniTeX }
   {
     \errorstopmode
-    \cctab_begin:N \c_code_cctab
+    \group_begin:
+      \char_set_catcode_letter:N \@
       \SAVECATCODES \TESTintarrayA
+    \group_end:
+    \cctab_begin:N \c_code_cctab
+      \SAVECATCODES \TESTintarrayB
     \cctab_end:
+    \IntarrayIfEqTF \TESTintarrayA \TESTintarrayB
+      { \TYPE { OK } } { \TYPE { Sob~T_T~\l__test_tl } }
     %
     \cctab_begin:N \c_initex_cctab
       \cctab_begin:N \c_code_cctab
-        \SAVECATCODES \TESTintarrayB
+        \SAVECATCODES \TESTintarrayA
       \cctab_end:
     \cctab_end:
     \IntarrayIfEqTF \TESTintarrayA \TESTintarrayB
diff --git a/l3kernel/testfiles/m3cctab001.tlg b/l3kernel/testfiles/m3cctab001.tlg
index 926827550..535277779 100644
--- a/l3kernel/testfiles/m3cctab001.tlg
+++ b/l3kernel/testfiles/m3cctab001.tlg
@@ -5,6 +5,7 @@ Author: Phelype Oleinik
 TEST 1: cctab_begin/code in iniTeX
 ============================================================
 OK
+OK
 ============================================================
 ============================================================
 TEST 2: cctab_begin/iniTeX in code





More information about the latex3-commits mailing list.