Update status tests

This commit is contained in:
Ilan Cosman 2021-03-26 07:38:10 -07:00
parent 4bbf541281
commit ac40b8fbe5

View File

@ -1,7 +1,8 @@
# RUN: %fish %s
function _status
set -g _tide_last_pipestatus $pipestatus
set -lx _tide_last_status $status
set -lx _tide_last_pipestatus $pipestatus
_tide_decolor (_tide_item_status)
end
@ -49,3 +50,10 @@ _status # CHECK: ✔ 1|0
false | false
_status # CHECK: ✘ 1|1
# Check that not command works
not true | false
_status # CHECK: ✔ 0|1
not false | true
_status # CHECK: ✘ 1|0