]> Sergey Matveev's repositories - zsh-autoenv.git/blob - tests/autoenv_utils.t
Simplify and lower LoC
[zsh-autoenv.git] / tests / autoenv_utils.t
1 Tests for provided utils/helpers.
2
3   $ source $TESTDIR/setup.zsh || return 1
4
5   $ PATH=
6   $ autoenv_prepend_path custom_path
7   $ echo $PATH
8   custom_path
9
10   $ autoenv_prepend_path custom_path
11   $ echo $PATH
12   custom_path
13
14   $ autoenv_prepend_path another_path a_third_one
15   $ echo $PATH
16   a_third_one:another_path:custom_path
17
18   $ autoenv_remove_path another_path a_third_one
19   $ echo $PATH
20   custom_path
21
22   $ autoenv_remove_path does_not_exist
23   [1]
24   $ echo $PATH
25   custom_path
26
27   $ autoenv_remove_path custom_path
28   $ echo PATH:$PATH
29   PATH: