aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/system/.zsh/modules/Test/B08shift.ztst
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
committerCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
commit6b76c602a1df6c18098fa6b9a43db3a64f2d5ce2 (patch)
tree26243df34563f38943f20df60c8aa1cb1ff24a78 /dotfiles/system/.zsh/modules/Test/B08shift.ztst
downloadarchsetup-6b76c602a1df6c18098fa6b9a43db3a64f2d5ce2.tar.gz
archsetup-6b76c602a1df6c18098fa6b9a43db3a64f2d5ce2.zip
fix(testing): remove obsolete --skip-slow-packages option
This flag was removed from archsetup but remained in test scripts.
Diffstat (limited to 'dotfiles/system/.zsh/modules/Test/B08shift.ztst')
-rw-r--r--dotfiles/system/.zsh/modules/Test/B08shift.ztst33
1 files changed, 33 insertions, 0 deletions
diff --git a/dotfiles/system/.zsh/modules/Test/B08shift.ztst b/dotfiles/system/.zsh/modules/Test/B08shift.ztst
new file mode 100644
index 0000000..0aa9226
--- /dev/null
+++ b/dotfiles/system/.zsh/modules/Test/B08shift.ztst
@@ -0,0 +1,33 @@
+# Test the shift builtin.
+
+%test
+
+ set -- one two three four five six seven eight nine ten
+ shift
+ print $*
+ shift 2
+ print $*
+ shift -p 3
+ print $*
+ shift -p
+ print $*
+0:shifting positional parameters
+>two three four five six seven eight nine ten
+>four five six seven eight nine ten
+>four five six seven
+>four five six
+
+ array=(yan tan tether mether pip azer sezar akker conter dick)
+ shift 2 array
+ print $array
+ shift array
+ print $array
+ shift -p 3 array
+ print $array
+ shift -p array
+ print $array
+0:shifting array
+>tether mether pip azer sezar akker conter dick
+>mether pip azer sezar akker conter dick
+>mether pip azer sezar
+>mether pip azer