summaryrefslogtreecommitdiff
path: root/Test/V10private.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/V10private.ztst')
-rw-r--r--Test/V10private.ztst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Test/V10private.ztst b/Test/V10private.ztst
index 6c38e3974..f877455fd 100644
--- a/Test/V10private.ztst
+++ b/Test/V10private.ztst
@@ -2,16 +2,20 @@
%prep
- if ! (zmodload zsh/param/private >/dev/null 2>/dev/null); then
+ if ! zmodload zsh/param/private 2>/dev/null; then
ZTST_unimplemented="can't load the zsh/param/private module for testing"
fi
- zmodload zsh/param/private
%test
(zmodload -u zsh/param/private && zmodload zsh/param/private)
0:unload and reload the module without crashing
+ $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $ZTST_srcdir/B02typeset.ztst
+0:typeset still works with zsh/param/private module loaded
+*>*
+*>*
+
typeset scalar_test=toplevel
() {
print $scalar_test
@@ -238,7 +242,7 @@ F:note "typeset" rather than "private" in output from outer
}
print Y ${(kv)hash_test} Z $array_test
}
- print ${(kv)hash_test}
+ print ${(kv)hash_test} ${(t)array_test}
0:privates are not visible in anonymous functions, part 3
>X top level
>Y in function Z in function