[latex3-commits] [latex3/latex3] main: Remove \seq_set_from_function:NnN as utility in tests (d0d857800)

github at latex-project.org github at latex-project.org
Fri May 5 13:58:41 CEST 2023


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

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

commit d0d857800f56e809a2d73ca0c2eced2733eccce4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 5 12:53:25 2023 +0100

    Remove \seq_set_from_function:NnN as utility in tests


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

d0d857800f56e809a2d73ca0c2eced2733eccce4
 l3kernel/testfiles/m3seq005.lvt | 7 ++++---
 l3kernel/testfiles/m3seq009.lvt | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/l3kernel/testfiles/m3seq005.lvt b/l3kernel/testfiles/m3seq005.lvt
index 490501027..193ea9057 100644
--- a/l3kernel/testfiles/m3seq005.lvt
+++ b/l3kernel/testfiles/m3seq005.lvt
@@ -1,5 +1,5 @@
 %
-% Copyright (C) 2011,2012,2015,2018,2020,2021 The LaTeX Project
+% Copyright (C) 2011,2012,2015,2018,2020,2021,2023 The LaTeX Project
 %
 \documentclass{minimal}
 \input{regression-test}
@@ -28,8 +28,9 @@
   \test:f { \seq_count:N \l_foo_seq }
   \cs_set_protected:Npn \test_aux:n #1
     {
-      \seq_set_from_function:NnN \l_foo_seq
-        { \int_step_function:nN {#1} } \use:n
+      \seq_clear:N \l_foo_seq
+      \int_step_inline:nn {#1}
+        { \seq_put_right:Nn \l_foo_seq {##1} }
       \int_compare:nNnF { \seq_count:N \l_foo_seq } = {#1} { \ERROR }
     }
   \int_step_function:nnN { 0 } { 17 } \test_aux:n
diff --git a/l3kernel/testfiles/m3seq009.lvt b/l3kernel/testfiles/m3seq009.lvt
index 1e1ed3ec4..ebcb3c4dc 100644
--- a/l3kernel/testfiles/m3seq009.lvt
+++ b/l3kernel/testfiles/m3seq009.lvt
@@ -1,5 +1,5 @@
 %
-% Copyright (C) 2018,2020,2021 The LaTeX Project
+% Copyright (C) 2018,2020,2021,2023 The LaTeX Project
 %
 
 \documentclass{minimal}
@@ -25,8 +25,9 @@
     \sys_gset_rand_seed:n { 12345 }
     \cs_set_protected:Npn \test:n #1
       {
-        \seq_set_from_function:NnN \l_tmpa_seq
-          { \int_step_function:nN {#1} } \use:n
+        \seq_clear:N \l_tmpa_seq
+        \int_step_inline:nn {#1}
+          { \seq_put_right:Nn \l_tmpa_seq {##1} }
         \seq_shuffle:N \l_tmpa_seq
         \int_compare:nNnF { \seq_count:N \l_tmpa_seq } = {#1} { \ERROR }
       }





More information about the latex3-commits mailing list.