tst_verbosity

# This test checks if Ice-Mods vanish after single zplugin invocation

zplugin ice depth"1" if"(( 0 ))"
zplugin light zdharma/ice-order
zplugin light zdharma/ice-order

local PREV_PWD="$PWD"
zplugin cd zdharma/ice-order

local -a lines
lines=( "${(f@)"$( command git log --oneline --max-count=2 )"}" )

cd "$PREV_PWD"
print -r -- ${#lines[@]} > answer/line_count

# No static ice should be gathered when if-condition is not meet
print -rl -- "${(kv)ZPLG_SICE[@]}" > answer/static_ice

# Not-neat adaptation of ice-order.plugin.zsh behavior
command rm -f answer/file.lst

# vim:ft=zsh
