[latex3-commits] [git/LaTeX3-latex3-latex3] l3bitset-2: build.lua and testfiles (9d71ebf98)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Dec 23 00:29:19 CET 2020
Repository : https://github.com/latex3/latex3
On branch : l3bitset-2
Link : https://github.com/latex3/latex3/commit/9d71ebf9826aee329f3a4e2e50afec60db08a139
>---------------------------------------------------------------
commit 9d71ebf9826aee329f3a4e2e50afec60db08a139
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Dec 23 00:29:19 2020 +0100
build.lua and testfiles
>---------------------------------------------------------------
9d71ebf9826aee329f3a4e2e50afec60db08a139
l3experimental/{l3benchmark => l3bitset}/build.lua | 6 +-
l3experimental/l3bitset/testfiles/m3bitset001.lvt | 264 ++++++++++++++
l3experimental/l3bitset/testfiles/m3bitset001.tlg | 392 +++++++++++++++++++++
l3experimental/l3bitset/testfiles/m3bitset002.lvt | 126 +++++++
.../l3bitset/testfiles/m3bitset002.tlg | 73 ++--
5 files changed, 817 insertions(+), 44 deletions(-)
diff --git a/l3experimental/l3benchmark/build.lua b/l3experimental/l3bitset/build.lua
similarity index 81%
copy from l3experimental/l3benchmark/build.lua
copy to l3experimental/l3bitset/build.lua
index 029524ef8..095e46bac 100644
--- a/l3experimental/l3benchmark/build.lua
+++ b/l3experimental/l3bitset/build.lua
@@ -1,15 +1,17 @@
#!/usr/bin/env texlua
--- Build script for LaTeX3 "l3benchmark" files
+-- Build script for LaTeX3 "l3bitset" files
-- Identify the bundle and module: the module may be empty in the case where
-- there is no subdivision
bundle = "l3experimental"
-module = "l3benchmark"
+module = "l3bitset"
-- Location of main directory: use Unix-style path separators
maindir = "../.."
+typesetfiles = {"l3bitset.dtx"}
+
-- Load the common build code
dofile(maindir .. "/build-config.lua")
diff --git a/l3experimental/l3bitset/testfiles/m3bitset001.lvt b/l3experimental/l3bitset/testfiles/m3bitset001.lvt
new file mode 100644
index 000000000..d9db656d6
--- /dev/null
+++ b/l3experimental/l3bitset/testfiles/m3bitset001.lvt
@@ -0,0 +1,264 @@
+% !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
+\RequirePackage[enable-debug,check-declarations]{expl3}
+\documentclass{article}
+\usepackage{l3bitset}
+
+
+\begin{document}
+\ExplSyntaxOn
+\START
+\OMIT
+\bitset_new:N \l_my_test_bitset
+\bitset_new:N \g_my_test_bitset
+\TIMO
+\TEST{show~init}
+ {
+ \bitset_show:N \l_my_test_bitset
+ \bitset_show:N \g_my_test_bitset
+ }
+
+
+\TESTEXP{show~export~empty}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ }
+
+\TESTEXP{show~export~empty~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ }
+
+\OMIT
+\bitset_set_true:Nn \l_my_test_bitset{1}
+\bitset_gset_true:Nn \g_my_test_bitset{1}
+\TIMO
+
+\TEST{set~index~1}
+ {
+ \bitset_show:N \l_my_test_bitset
+ }
+
+\TEST{set~index~1~global}
+ {
+ \bitset_show:N \g_my_test_bitset
+ }
+
+\TEST{set~negative~index}
+ {
+ \bitset_set_true:Nn \l_my_test_bitset{-2}
+ \bitset_show:N \l_my_test_bitset
+ }
+
+\TEST{set~negative~index~global}
+ {
+ \bitset_gset_true:Nn \g_my_test_bitset{-2}
+ \bitset_show:N \g_my_test_bitset
+ }
+
+\OMIT
+\bitset_set_true:Nn \l_my_test_bitset {3}
+\bitset_set_true:Nn \l_my_test_bitset {5}
+\bitset_set_true:Nn \l_my_test_bitset {7}
+\bitset_set_true:Nn \l_my_test_bitset {9}
+\bitset_gset_true:Nn \g_my_test_bitset {3}
+\bitset_gset_true:Nn \g_my_test_bitset {5}
+\bitset_gset_true:Nn \g_my_test_bitset {7}
+\bitset_gset_true:Nn \g_my_test_bitset {9}
+\TIMO
+
+\TESTEXP{show~small-index}
+ {
+ \bitset_to_bin:N \l_my_test_bitset\NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {-1}\NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {0}\NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {1}
+ }
+
+\TESTEXP{show~small-index-global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset\NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {-1}\NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {0}\NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {1}
+ }
+
+\TESTEXP{show~export}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ }
+
+\TESTEXP{show~export~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ }
+
+\OMIT
+\bitset_set_true:Nn \l_my_test_bitset {41}
+\bitset_gset_true:Nn \g_my_test_bitset {41}
+\TIMO
+
+\TESTEXP{show~large~index}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {42}
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {41}
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {40}
+ \NEWLINE
+ }
+
+\TESTEXP{show~large~index~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {42}
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {41}
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {40}
+ \NEWLINE
+ }
+
+\TESTEXP{show~index~8}
+ {
+ \bitset_index:Nn \l_my_test_bitset {8}
+ }
+
+\TESTEXP{show~index~8~global}
+ {
+ \bitset_index:Nn \g_my_test_bitset {8}
+ }
+
+\OMIT
+\bitset_set_true:Nn \l_my_test_bitset {2+2+8-4}
+\bitset_gset_true:Nn \g_my_test_bitset {2+2+8-4}
+\TIMO
+
+\TESTEXP{add~index~8~with~sum}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {8}
+ }
+
+\TESTEXP{add~index~8~with~sum~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {8}
+ }
+
+
+\OMIT
+\bitset_set_true:Nn \l_my_test_bitset { \int_max:nn{4}{15} }
+\bitset_gset_true:Nn \g_my_test_bitset { \int_max:nn{4}{15} }
+\TIMO
+
+\TESTEXP{add~index~15~with~max-function}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {15}
+ }
+
+\TESTEXP{add~index~15~with~max-function}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {15}
+ }
+
+\OMIT
+\bitset_set_false:Nn \l_my_test_bitset { 41 }
+\bitset_gset_false:Nn \g_my_test_bitset { 41 }
+\TIMO
+
+\TESTEXP{remove~index~41}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {41}
+ }
+
+\TESTEXP{remove~index~41~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {41}
+ }
+
+
+\OMIT
+\bitset_set_false:Nn \l_my_test_bitset { -1+2+3+6+5 }
+\bitset_gset_false:Nn \g_my_test_bitset { -1+2+3+6+5 }
+\TIMO
+
+\TESTEXP{remove~index~15~with~sum}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \l_my_test_bitset {15}
+ }
+
+\TESTEXP{remove~index~15~with~sum~global}
+ {
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_index:Nn \g_my_test_bitset {15}
+ }
+
+\OMIT
+\bitset_new:N \l_my_testb_bitset
+\TIMO
+
+\TEST{to~arabic}
+ {
+ \int_step_inline:nn {40}
+ {
+ \bitset_show:N \l_my_testb_bitset
+ \bitset_set_false:Nn \l_my_testb_bitset {#1-1}
+ \bitset_set_true:Nn \l_my_testb_bitset {#1}
+ }
+ }
+
+\OMIT
+\bitset_clear:N \l_my_test_bitset
+\bitset_gclear:N \g_my_test_bitset
+\TIMO
+
+\TEST {clear}
+ {
+ \bitset_show:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_show:N \g_my_test_bitset
+ }
+
+
+\END
diff --git a/l3experimental/l3bitset/testfiles/m3bitset001.tlg b/l3experimental/l3bitset/testfiles/m3bitset001.tlg
new file mode 100644
index 000000000..245033968
--- /dev/null
+++ b/l3experimental/l3bitset/testfiles/m3bitset001.tlg
@@ -0,0 +1,392 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+============================================================
+TEST 1: show init
+============================================================
+The bitset \l_my_test_bitset has the representation:
+> binary: 0
+> arabic: 0.
+<recently read> }
+l. ... }
+The bitset \g_my_test_bitset has the representation:
+> binary: 0
+> arabic: 0.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 2: show export empty
+============================================================
+0
+0
+============================================================
+============================================================
+TEST 3: show export empty global
+============================================================
+0
+0
+============================================================
+============================================================
+TEST 4: set index 1
+============================================================
+The bitset \l_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 5: set index 1 global
+============================================================
+The bitset \g_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 6: set negative index
+============================================================
+The bitset \l_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 7: set negative index global
+============================================================
+The bitset \g_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 8: show small-index
+============================================================
+101010101
+0
+0
+1
+============================================================
+============================================================
+TEST 9: show small-index-global
+============================================================
+101010101
+0
+0
+1
+============================================================
+============================================================
+TEST 10: show export
+============================================================
+101010101
+341
+============================================================
+============================================================
+TEST 11: show export global
+============================================================
+101010101
+341
+============================================================
+============================================================
+TEST 12: show large index
+============================================================
+10000000000000000000000000000000101010101
+0
+1
+0
+============================================================
+============================================================
+TEST 13: show large index global
+============================================================
+10000000000000000000000000000000101010101
+0
+1
+0
+============================================================
+============================================================
+TEST 14: show index 8
+============================================================
+0
+============================================================
+============================================================
+TEST 15: show index 8 global
+============================================================
+0
+============================================================
+============================================================
+TEST 16: add index 8 with sum
+============================================================
+10000000000000000000000000000000111010101
+1099511628245
+1
+============================================================
+============================================================
+TEST 17: add index 8 with sum global
+============================================================
+10000000000000000000000000000000111010101
+1099511628245
+1
+============================================================
+============================================================
+TEST 18: add index 15 with max-function
+============================================================
+10000000000000000000000000100000111010101
+1099511644629
+1
+============================================================
+============================================================
+TEST 19: add index 15 with max-function
+============================================================
+10000000000000000000000000100000111010101
+1099511644629
+1
+============================================================
+============================================================
+TEST 20: remove index 41
+============================================================
+00000000000000000000000000100000111010101
+16853
+0
+============================================================
+============================================================
+TEST 21: remove index 41 global
+============================================================
+00000000000000000000000000100000111010101
+16853
+0
+============================================================
+============================================================
+TEST 22: remove index 15 with sum
+============================================================
+00000000000000000000000000000000111010101
+469
+0
+============================================================
+============================================================
+TEST 23: remove index 15 with sum global
+============================================================
+00000000000000000000000000000000111010101
+469
+0
+============================================================
+============================================================
+TEST 24: to arabic
+============================================================
+The bitset \l_my_testb_bitset has the representation:
+> binary: 0
+> arabic: 0.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10
+> arabic: 2.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100
+> arabic: 4.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000
+> arabic: 8.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000
+> arabic: 16.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000
+> arabic: 32.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000
+> arabic: 64.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000
+> arabic: 128.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000
+> arabic: 256.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000
+> arabic: 512.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000
+> arabic: 1024.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000
+> arabic: 2048.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000
+> arabic: 4096.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000
+> arabic: 8192.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000
+> arabic: 16384.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000
+> arabic: 32768.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000
+> arabic: 65536.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000
+> arabic: 131072.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000
+> arabic: 262144.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000
+> arabic: 524288.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000
+> arabic: 1048576.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000
+> arabic: 2097152.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000
+> arabic: 4194304.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000
+> arabic: 8388608.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000000
+> arabic: 16777216.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000000
+> arabic: 33554432.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000000
+> arabic: 67108864.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000000000
+> arabic: 134217728.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000000000
+> arabic: 268435456.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000000000
+> arabic: 536870912.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000000000000
+> arabic: 1073741824.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000000000000
+> arabic: 2147483648.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000000000000
+> arabic: 4294967296.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000000000000000
+> arabic: 8589934592.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000000000000000
+> arabic: 17179869184.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000000000000000
+> arabic: 34359738368.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 1000000000000000000000000000000000000
+> arabic: 68719476736.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 10000000000000000000000000000000000000
+> arabic: 137438953472.
+<recently read> }
+l. ... }
+The bitset \l_my_testb_bitset has the representation:
+> binary: 100000000000000000000000000000000000000
+> arabic: 274877906944.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 25: clear
+============================================================
+The bitset \l_my_test_bitset has the representation:
+> binary: 0
+> arabic: 0.
+<recently read> }
+l. ... }
+The bitset \g_my_test_bitset has the representation:
+> binary: 0
+> arabic: 0.
+<recently read> }
+l. ... }
+============================================================
diff --git a/l3experimental/l3bitset/testfiles/m3bitset002.lvt b/l3experimental/l3bitset/testfiles/m3bitset002.lvt
new file mode 100644
index 000000000..5fb77f0ec
--- /dev/null
+++ b/l3experimental/l3bitset/testfiles/m3bitset002.lvt
@@ -0,0 +1,126 @@
+% !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
+\RequirePackage[enable-debug,check-declarations]{expl3}
+\documentclass{article}
+\usepackage{l3bitset}
+
+
+\begin{document}
+\ExplSyntaxOn
+\ExplSyntaxOn
+\START
+\OMIT
+\bitset_new:N \l_my_test_bitset
+
+\bitset_gset_named_index:Nn \l_my_test_bitset
+ {
+ Invisible = 1,
+ Hidden = 2,
+ Print = 3,
+ NoZoom = 4,
+ NoRotate = 5,
+ NoView = 6,
+ ReadOnly = 7,
+ Locked = 8,
+ ToggleNoView = 9,
+ LockedContents = 10
+ }
+\bitset_new:N \g_my_test_bitset
+
+\bitset_gset_named_index:Nn \g_my_test_bitset
+ {
+ gInvisible = 1,
+ gHidden = 2,
+ gPrint = 3,
+ gNoZoom = 4,
+ gNoRotate = 5,
+ gNoView = 6,
+ gReadOnly = 7,
+ gLocked = 8,
+ gToggleNoView = 9,
+ gLockedContents = 10
+ }
+\TIMO
+
+\TESTEXP { unset~key}
+ {
+ \bitset_key:Nn \l_my_test_bitset {Invisible}
+ \NEWLINE
+ \bitset_key:Nn \g_my_test_bitset {gInvisible}
+ }
+
+\OMIT
+\bitset_set_true_key:Nn \l_my_test_bitset{Invisible}
+\bitset_gset_true_key:Nn \g_my_test_bitset{gInvisible}
+\TIMO
+
+\TESTEXP { set~Invisible~(index~1) }
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_key:Nn \l_my_test_bitset {Invisible}
+ \NEWLINE
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_key:Nn \g_my_test_bitset {gInvisible}
+ \NEWLINE
+ }
+
+\TEST { set~unknown~key}
+ {
+ \bitset_set_true_key:Nn \l_my_test_bitset{unknown}
+ \NEWLINE
+ \bitset_gset_true_key:Nn \g_my_test_bitset{unknown}
+ \NEWLINE
+ \bitset_show:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_show:N \g_my_test_bitset
+ }
+
+\OMIT
+\bitset_set_true_key:Nn \l_my_test_bitset {Print}
+\bitset_set_true_key:Nn \l_my_test_bitset {NoRotate}
+\bitset_set_true_key:Nn \l_my_test_bitset {ReadOnly}
+\bitset_set_true_key:Nn \l_my_test_bitset {ToggleNoView}
+\bitset_gset_true_key:Nn \g_my_test_bitset {gPrint}
+\bitset_gset_true_key:Nn \g_my_test_bitset {gNoRotate}
+\bitset_gset_true_key:Nn \g_my_test_bitset {gReadOnly}
+\bitset_gset_true_key:Nn \g_my_test_bitset {gToggleNoView}
+\TIMO
+
+\TESTEXP {set~3,~4,~5,~6}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ }
+
+\OMIT
+\bitset_set_false_key:Nn \l_my_test_bitset {Print}
+\bitset_set_false_key:Nn \l_my_test_bitset {NoRotate}
+\bitset_set_false_key:Nn \l_my_test_bitset {ReadOnly}
+\bitset_set_false_key:Nn \l_my_test_bitset {ToggleNoView}
+\bitset_gset_false_key:Nn \g_my_test_bitset {gPrint}
+\bitset_gset_false_key:Nn \g_my_test_bitset {gNoRotate}
+\bitset_gset_false_key:Nn \g_my_test_bitset {gReadOnly}
+\bitset_gset_false_key:Nn \g_my_test_bitset {gToggleNoView}
+\TIMO
+
+
+\TESTEXP {unset~3,~4,~5,~6}
+ {
+ \bitset_to_bin:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \l_my_test_bitset
+ \NEWLINE
+ \bitset_to_bin:N \g_my_test_bitset
+ \NEWLINE
+ \bitset_to_arabic:N \g_my_test_bitset
+ }
+
+\ExplSyntaxOff
+\END
\ No newline at end of file
diff --git a/l3kernel/testfiles/m3prg005.tlg b/l3experimental/l3bitset/testfiles/m3bitset002.tlg
similarity index 65%
copy from l3kernel/testfiles/m3prg005.tlg
copy to l3experimental/l3bitset/testfiles/m3bitset002.tlg
index 7791e05b5..f4fdcc682 100644
--- a/l3kernel/testfiles/m3prg005.tlg
+++ b/l3experimental/l3bitset/testfiles/m3bitset002.tlg
@@ -1,59 +1,48 @@
This is a generated file for the LaTeX (2e + expl3) validation system.
Don't change this file in any respect.
-Author: Bruno Le Floch
============================================================
-TEST 1: Lazy ALL
+TEST 1: unset key
============================================================
-FALSE
-FALSE
-TRUE
-TRUE
-\c_true_bool
-\c_false_bool
-\c_false_bool
-\c_false_bool
-\c_true_bool
+0
+0
============================================================
============================================================
-TEST 2: Lazy AND
+TEST 2: set Invisible (index 1)
============================================================
-FALSE
-FALSE
-TRUE
-TRUE
-\c_true_bool
-\c_false_bool
-\c_false_bool
+1
+1
+1
+1
============================================================
============================================================
-TEST 3: Lazy ANY
+TEST 3: set unknown key
============================================================
-TRUE
-TRUE
-FALSE
-FALSE
-\c_false_bool
-\c_true_bool
-\c_true_bool
-\c_true_bool
-\c_false_bool
+LaTeX3 Warning: The key 'unknown' is unknown for bitset \l_my_test_bitset
+LaTeX3 Warning: The key 'unknown' is unknown for bitset \g_my_test_bitset
+The bitset \l_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
+The bitset \g_my_test_bitset has the representation:
+> binary: 1
+> arabic: 1.
+<recently read> }
+l. ... }
============================================================
============================================================
-TEST 4: Lazy OR
+TEST 4: set 3, 4, 5, 6
============================================================
-FALSE
-FALSE
-TRUE
-TRUE
-\c_true_bool
-\c_true_bool
-\c_false_bool
+101010101
+341
+101010101
+341
============================================================
============================================================
-TEST 5: bool_case
+TEST 5: unset 3, 4, 5, 6
============================================================
-TRUETRUE
-FALSE
-TRUETRUE
-FALSE
+000000001
+1
+000000001
+1
============================================================
More information about the latex3-commits
mailing list.