[latex3-commits] [git/LaTeX3-latex3-latex3] master: Tests for intarray zeroing (bf8775c)
Bruno Le Floch
bruno at le-floch.fr
Fri May 4 23:28:35 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/bf8775c6e480cc4c563267b59cad65be61109bc7
>---------------------------------------------------------------
commit bf8775c6e480cc4c563267b59cad65be61109bc7
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Fri May 4 23:28:35 2018 +0200
Tests for intarray zeroing
>---------------------------------------------------------------
bf8775c6e480cc4c563267b59cad65be61109bc7
l3kernel/testfiles/m3intarray001.lvt | 9 +++++++++
l3kernel/testfiles/m3intarray001.tlg | 6 ++++++
2 files changed, 15 insertions(+)
diff --git a/l3kernel/testfiles/m3intarray001.lvt b/l3kernel/testfiles/m3intarray001.lvt
index a1cb632..71fa170 100644
--- a/l3kernel/testfiles/m3intarray001.lvt
+++ b/l3kernel/testfiles/m3intarray001.lvt
@@ -74,4 +74,13 @@
{ \int_compare:nNnF { \intarray_item:Nn \g_testd_intarray {#1} } = 0 { \TYPE {#1} } }
}
+\TEST { Zeroing }
+ {
+ \intarray_gset:Nnn \g_testd_intarray { 12 } { 24 }
+ \intarray_gset:Nnn \g_testd_intarray { 14 } { 28 }
+ \TYPE { \intarray_item:Nn \g_testd_intarray { 12 } }
+ \intarray_gzero:N \g_testd_intarray
+ \TYPE { \intarray_item:Nn \g_testd_intarray { 12 } }
+ }
+
\END
diff --git a/l3kernel/testfiles/m3intarray001.tlg b/l3kernel/testfiles/m3intarray001.tlg
index 32fda6d..8ae8b34 100644
--- a/l3kernel/testfiles/m3intarray001.tlg
+++ b/l3kernel/testfiles/m3intarray001.tlg
@@ -169,3 +169,9 @@ TEST 4: Any stray non-zero?
============================================================
Defining \g_testd_intarray on line ...
============================================================
+============================================================
+TEST 5: Zeroing
+============================================================
+24
+0
+============================================================
More information about the latex3-commits
mailing list