[latex3-commits] [git/LaTeX3-latex3-latex3] peek-refactor: Remove ignore_spaces tests (f4944bc78)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jan 11 15:09:31 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : peek-refactor
Link       : https://github.com/latex3/latex3/commit/f4944bc78d856c0564aadffbb9851b5bc3b06bab

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

commit f4944bc78d856c0564aadffbb9851b5bc3b06bab
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jan 11 14:09:10 2022 +0000

    Remove ignore_spaces tests


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

f4944bc78d856c0564aadffbb9851b5bc3b06bab
 l3kernel/testfiles/m3peek002.lvt | 45 ----------------------------------
 l3kernel/testfiles/m3peek002.tlg | 52 ----------------------------------------
 2 files changed, 97 deletions(-)

diff --git a/l3kernel/testfiles/m3peek002.lvt b/l3kernel/testfiles/m3peek002.lvt
index bb2eab595..b1fa18617 100644
--- a/l3kernel/testfiles/m3peek002.lvt
+++ b/l3kernel/testfiles/m3peek002.lvt
@@ -46,19 +46,11 @@
     \peek_meaning:NTF !                      { \TRUE\type }{ \FALSE\type }~\a-
     \peek_meaning_remove:NTF !               { \TRUE\type }{ \FALSE\type } \a-
     \peek_meaning_remove:NTF !               { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_meaning_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type } \a-
-    \peek_meaning_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_meaning_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type } \a-
-    \peek_meaning_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type }~\a-
     \SEPARATOR
     \peek_meaning:NT !                      { \TYPE{T1} \type } \a-
     \peek_meaning:NF !                      { \TYPE{F1} \type }~\a-
     \peek_meaning_remove:NT !               { \TYPE{T2} \type } \a-
     \peek_meaning_remove:NF !               { \TYPE{F2} \type }~\a-
-    \peek_meaning_ignore_spaces:NT !        { \TYPE{T3} \type } \a-
-    \peek_meaning_ignore_spaces:NF !        { \TYPE{F3} \type }~\a-
-    \peek_meaning_remove_ignore_spaces:NT ! { \TYPE{T4} \type } \a-
-    \peek_meaning_remove_ignore_spaces:NF ! { \TYPE{F4} \type }~\a-
   }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -72,19 +64,11 @@
     \peek_charcode:NTF !                      { \TRUE\type }{ \FALSE\type }~\a-
     \peek_charcode_remove:NTF !               { \TRUE\type }{ \FALSE\type } \a-
     \peek_charcode_remove:NTF !               { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_charcode_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type } \a-
-    \peek_charcode_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_charcode_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type } \a-
-    \peek_charcode_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type }~\a-
     \SEPARATOR
     \peek_charcode:NT !                      { \TYPE{T1} \type } \a-
     \peek_charcode:NF !                      { \TYPE{F1} \type }~\a-
     \peek_charcode_remove:NT !               { \TYPE{T2} \type } \a-
     \peek_charcode_remove:NF !               { \TYPE{F2} \type }~\a-
-    \peek_charcode_ignore_spaces:NT !        { \TYPE{T3} \type } \a-
-    \peek_charcode_ignore_spaces:NF !        { \TYPE{F3} \type }~\a-
-    \peek_charcode_remove_ignore_spaces:NT ! { \TYPE{T4} \type } \a-
-    \peek_charcode_remove_ignore_spaces:NF ! { \TYPE{F4} \type }~\a-
   }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -98,19 +82,11 @@
     \peek_catcode:NTF !                      { \TRUE\type }{ \FALSE\type }~\a-
     \peek_catcode_remove:NTF !               { \TRUE\type }{ \FALSE\type } \a-
     \peek_catcode_remove:NTF !               { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_catcode_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type } \a-
-    \peek_catcode_ignore_spaces:NTF !        { \TRUE\type }{ \FALSE\type }~\a-
-    \peek_catcode_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type } \a-
-    \peek_catcode_remove_ignore_spaces:NTF ! { \TRUE\type }{ \FALSE\type }~\a-
     \SEPARATOR
     \peek_catcode:NT !                      { \TYPE{T1} \type } \a-
     \peek_catcode:NF !                      { \TYPE{F1} \type }~\a-
     \peek_catcode_remove:NT !               { \TYPE{T2} \type } \a-
     \peek_catcode_remove:NF !               { \TYPE{F2} \type }~\a-
-    \peek_catcode_ignore_spaces:NT !        { \TYPE{T3} \type } \a-
-    \peek_catcode_ignore_spaces:NF !        { \TYPE{F3} \type }~\a-
-    \peek_catcode_remove_ignore_spaces:NT ! { \TYPE{T4} \type } \a-
-    \peek_catcode_remove_ignore_spaces:NF ! { \TYPE{F4} \type }~\a-
   }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -256,25 +232,4 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\TEST { Peek~ignore~space~test~space }
-  {
-    \cs_set_protected:Npn \test:w #1 ? { \TYPE { |#1| } }
-    \char_set_lccode:nn { `\ } { `\a }
-    \tex_lowercase:D { \use:n { \cs_set_eq:NN \l_test_token } ~ }
-    \peek_meaning_ignore_spaces:NTF \c_space_token
-      { \ERROR } { \FALSE \test:w } ~ \c_space_token \l_test_token ?
-    \peek_catcode_ignore_spaces:NTF \c_space_token
-      { \TRUE \test:w } { \ERROR } ~ \c_space_token \l_test_token ?
-    \peek_charcode_ignore_spaces:NTF \c_space_token
-      { \ERROR } { \FALSE \test:w } ~ \c_space_token \l_test_token ?
-    \peek_meaning_remove_ignore_spaces:NTF \c_space_token
-      { \ERROR } { \FALSE \test:w } ~ \c_space_token \l_test_token ?
-    \peek_catcode_remove_ignore_spaces:NTF \c_space_token
-      { \TRUE \test:w } { \ERROR } ~ \c_space_token \l_test_token ?
-    \peek_charcode_remove_ignore_spaces:NTF \c_space_token
-      { \ERROR } { \FALSE \test:w } ~ \c_space_token \l_test_token ?
-  }
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
 \END
diff --git a/l3kernel/testfiles/m3peek002.tlg b/l3kernel/testfiles/m3peek002.tlg
index 13804466d..7f3dcd067 100644
--- a/l3kernel/testfiles/m3peek002.tlg
+++ b/l3kernel/testfiles/m3peek002.tlg
@@ -28,23 +28,11 @@ FALSE
 ?
 FALSE
 ?
-FALSE
-?
-FALSE
-?
-FALSE
-?
-FALSE
-?
 ============================================================
 F1
 ?
 F2
 ?
-F3
-?
-F4
-?
 ============================================================
 ============================================================
 TEST 3: peek_charcode with outer macro
@@ -57,23 +45,11 @@ FALSE
 ?
 FALSE
 ?
-FALSE
-?
-FALSE
-?
-FALSE
-?
-FALSE
-?
 ============================================================
 F1
 ?
 F2
 ?
-F3
-?
-F4
-?
 ============================================================
 ============================================================
 TEST 4: peek_catcode with outer macro
@@ -86,23 +62,11 @@ FALSE
 ?
 FALSE
 ?
-FALSE
-?
-FALSE
-?
-FALSE
-?
-FALSE
-?
 ============================================================
 F1
 ?
 F2
 ?
-F3
-?
-F4
-?
 ============================================================
 ============================================================
 TEST 5: Peek charcode for bgroup/egroup/space
@@ -208,19 +172,3 @@ TRUE
 FALSE
 TRUE
 ============================================================
-============================================================
-TEST 9: Peek ignore space test space
-============================================================
-FALSE
-|\l_test_token |
-TRUE
-|\l_test_token |
-FALSE
-|\l_test_token |
-FALSE
-|\l_test_token |
-TRUE
-||
-FALSE
-|\l_test_token |
-============================================================





More information about the latex3-commits mailing list.