[latex3-commits] [latex3/latex3] main: add test for unknown with .default:n (8fd37b7b4)
github at latex-project.org
github at latex-project.org
Wed Jan 3 14:52:42 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/8fd37b7b4ef421be94ed823ac3b776d36610541e
>---------------------------------------------------------------
commit 8fd37b7b4ef421be94ed823ac3b776d36610541e
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Tue Jan 2 20:53:06 2024 +0100
add test for unknown with .default:n
>---------------------------------------------------------------
8fd37b7b4ef421be94ed823ac3b776d36610541e
l3kernel/testfiles/m3keys001.lvt | 9 +++++++++
l3kernel/testfiles/m3keys001.tlg | 2 ++
2 files changed, 11 insertions(+)
diff --git a/l3kernel/testfiles/m3keys001.lvt b/l3kernel/testfiles/m3keys001.lvt
index 7eba8f939..c6e56c935 100644
--- a/l3kernel/testfiles/m3keys001.lvt
+++ b/l3kernel/testfiles/m3keys001.lvt
@@ -287,6 +287,15 @@
key-one = value ,
key-two = value
}
+ \keys_define:nn { module }
+ {
+ unknown .default:n = foo
+ }
+ \keys_set:nn { module }
+ {
+ key-one,
+ key-two
+ }
}
\TEST { Unknown~properties,~etc. }
diff --git a/l3kernel/testfiles/m3keys001.tlg b/l3kernel/testfiles/m3keys001.tlg
index 07fa0ec64..e0f660062 100644
--- a/l3kernel/testfiles/m3keys001.tlg
+++ b/l3kernel/testfiles/m3keys001.tlg
@@ -120,6 +120,8 @@ Check that you have spelled the key name correctly.
Defining key module/unknown on line ...
"value"
I saw "value"
+""
+I saw "foo"
============================================================
============================================================
TEST 10: Unknown properties, etc.
More information about the latex3-commits
mailing list.