summary refs log tree commit diff
path: root/Test/V05styles.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-01 03:59:39 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-01 04:00:17 +0000
commit2acbae3badc5c9afe40e2a393472d2d303c60ae6 (patch)
treef9b0c71874085cf125da3eb0dd415cf6463dbd59 /Test/V05styles.ztst
parent4bb8c937d85b7a1ff29485fc6023bba70e45852c (diff)
downloadzsh-2acbae3badc5c9afe40e2a393472d2d303c60ae6.tar.gz
zsh-2acbae3badc5c9afe40e2a393472d2d303c60ae6.tar.xz
zsh-2acbae3badc5c9afe40e2a393472d2d303c60ae6.zip
unposted: zstyle: Add a unit test and some comments.
Diffstat (limited to 'Test/V05styles.ztst')
-rw-r--r--Test/V05styles.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/V05styles.ztst b/Test/V05styles.ztst
index ca95b6348..c221d9db8 100644
--- a/Test/V05styles.ztst
+++ b/Test/V05styles.ztst
@@ -141,3 +141,13 @@
 >scalar-style
 >        :ztst:context:* second-scalar-value
 
+ (zstyle 'ctx?' foo one
+  zstyle 'ctx*' foo two
+  zstyle -s 'ctx1' foo bar && print $bar)
+ (zstyle 'ctx*' foo two
+  zstyle 'ctx?' foo one
+  zstyle -s 'ctx1' foo bar && print $bar)
+0:patterns of equal weight are used in order of definition
+>one
+>two
+