diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
| commit | b10cba594db836c0747066addad48bda4d30cd02 (patch) | |
| tree | 063119a623fa3f7139feda4ef302896d8f5f934c /dotfiles/common/.zsh/modules/Test/D05array.ztst | |
| parent | 49c2ba9c4510bf6e1acd306687473bc8ba9ad8dd (diff) | |
| download | archsetup-b10cba594db836c0747066addad48bda4d30cd02.tar.gz archsetup-b10cba594db836c0747066addad48bda4d30cd02.zip | |
refactor: drop in-repo dotfiles/, move stow tooling to the dotfiles repo
Since the installer clones DOTFILES_REPO into ~/.dotfiles and stows from there, the in-repo dotfiles/ tree was dead weight. Nothing reads it at install time. I removed it (831 files) now that both machines are migrated.
The Makefile's stow / restow / reset / unstow / import targets and the dotfile-script unit suites moved to the dotfiles repo. They sit alongside the scripts they manage and run standalone (cd ~/.dotfiles && make ...). This Makefile keeps the VM-integration targets and the installer-helper suite (safe-rm-rf).
I updated CLAUDE.md and README.md so stow operations run from ~/.dotfiles, and the dotfile-management, theme, and unit-test sections point at the standalone repo. The README was already describing the old in-repo model from before the installer switched to cloning. This brings it in line.
Diffstat (limited to 'dotfiles/common/.zsh/modules/Test/D05array.ztst')
| -rw-r--r-- | dotfiles/common/.zsh/modules/Test/D05array.ztst | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/dotfiles/common/.zsh/modules/Test/D05array.ztst b/dotfiles/common/.zsh/modules/Test/D05array.ztst deleted file mode 100644 index 1fa607d..0000000 --- a/dotfiles/common/.zsh/modules/Test/D05array.ztst +++ /dev/null @@ -1,112 +0,0 @@ -# Tests for array indexing - -%prep - - foo=(a b c d e f g) - arr=(foo bar baz) - mkdir array.tmp - touch array.tmp/{1..9} - -%test - - echo .$foo[1]. -0:The first element ->.a. - - echo .$foo[1,4]. -0:Normal multi-item indexing ->.a b c d. - - echo .$foo[1,0]. -0:This should be empty ->.. - - echo .$foo[4,1]. -0:Another empty slice ->.. - - echo .$foo[1,-8]. -0:An empty slice with a negative end ->.. - - echo .$foo[0]. -0:Treat 0 as empty ->.. - - echo .$foo[0,0]. -0:Treat 0,0 as empty ->.. - - echo .$foo[0,1]. -0:Another weird way to access the first element ->.a. - - echo .$foo[3]. -0:An inner element ->.c. - - echo .$foo[2,2]. -0:Another inner element ->.b. - - echo .$foo[2,-4]. -0:A slice with a negative end ->.b c d. - - echo .$foo[-4,5]. -0:A slice with a negative start ->.d e. - - echo .$foo[-6,-2]. -0:A slice with a negative start and end ->.b c d e f. - - echo .${${arr[2]}[1]}. - echo .${${arr[-2]}[1]}. - echo .${${arr[2,2]}[1]}. - echo .${${arr[-2,-2]}[1]}. - echo .${${arr[2,-2]}[1]}. - echo .${${arr[-2,2]}[1]}. -0:Slices should return an array, elements a scalar ->.b. ->.b. ->.bar. ->.bar. ->.bar. ->.bar. - - setopt ksh_arrays - echo .${foo[1,2]}. - unsetopt ksh_arrays -0:Ksh array indexing ->.b c. - - setopt ksh_arrays - echo .${foo[0,1]}. - unsetopt ksh_arrays -0:Ksh array indexing (ii) ->.a b. - - setopt ksh_arrays - echo .${foo[1,-1]}. - unsetopt ksh_arrays -0:Ksh array indexing (iii) ->.b c d e f g. - - cd array.tmp - echo . ?([3,5]) . - cd .. -0:Glob array indexing ->. 3 4 5 . - - cd array.tmp - echo . ?([2,-2]) . - cd .. -0:Glob array indexing (ii) ->. 2 3 4 5 6 7 8 . - - cd array.tmp - echo . ?([-6,-4]) . - cd .. -0:Glob array indexing (iii) ->. 4 5 6 . |
