[latex3-commits] [git/LaTeX3-latex3-latex3] master: add test for path trimming (8c9701dcf)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Aug 5 08:40:39 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/8c9701dcf2bfd794757c0255539787c29fdcc843
>---------------------------------------------------------------
commit 8c9701dcf2bfd794757c0255539787c29fdcc843
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Mon Aug 3 20:56:44 2020 +0200
add test for path trimming
>---------------------------------------------------------------
8c9701dcf2bfd794757c0255539787c29fdcc843
l3kernel/testfiles/m3keys005.lvt | 6 ++++++
l3kernel/testfiles/m3keys005.tlg | 12 ++++++++++++
2 files changed, 18 insertions(+)
diff --git a/l3kernel/testfiles/m3keys005.lvt b/l3kernel/testfiles/m3keys005.lvt
index cb3e26091..4e19883cf 100644
--- a/l3kernel/testfiles/m3keys005.lvt
+++ b/l3kernel/testfiles/m3keys005.lvt
@@ -28,6 +28,9 @@
}
}
\keys_set:nn { foo } { bar / baz }
+ \keys_set:nn { foo } { ~ bar ~ / ~ baz ~ }
+ \keys_set:nn { foo } { ~ bar ~ / baz ~ }
+ \keys_set:nn { foo } { ~ bar / ~ baz ~ }
\keys_define:nn { foo / baz }
{
bar .code:n =
@@ -37,6 +40,9 @@
}
}
\keys_set:nn { foo / baz } { bar }
+ \keys_set:nn { ~ foo ~ / ~ baz ~ } { ~ bar ~ }
+ \keys_set:nn { ~ foo ~ / baz ~ } { ~ bar ~ }
+ \keys_set:nn { ~ foo / ~ baz ~ } { ~ bar ~ }
}
\TEST { Modules~hidden~in~key~part }
diff --git a/l3kernel/testfiles/m3keys005.tlg b/l3kernel/testfiles/m3keys005.tlg
index e025ee119..d8d21e2a9 100644
--- a/l3kernel/testfiles/m3keys005.tlg
+++ b/l3kernel/testfiles/m3keys005.tlg
@@ -7,9 +7,21 @@ TEST 1: Key names and paths
Defining key foo/bar/baz on line ...
> \l_keys_key_str=baz.
> \l_keys_path_str=foo/bar/baz.
+> \l_keys_key_str=baz.
+> \l_keys_path_str=foo/bar/baz.
+> \l_keys_key_str=baz.
+> \l_keys_path_str=foo/bar/baz.
+> \l_keys_key_str=baz.
+> \l_keys_path_str=foo/bar/baz.
Defining key foo/baz/bar on line ...
> \l_keys_key_str=bar.
> \l_keys_path_str=foo/baz/bar.
+> \l_keys_key_str=bar.
+> \l_keys_path_str=foo/baz/bar.
+> \l_keys_key_str=bar.
+> \l_keys_path_str=foo/baz/bar.
+> \l_keys_key_str=bar.
+> \l_keys_path_str=foo/baz/bar.
============================================================
============================================================
TEST 2: Modules hidden in key part
More information about the latex3-commits
mailing list.