mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Update status tests
This commit is contained in:
parent
4bbf541281
commit
ac40b8fbe5
@ -1,7 +1,8 @@
|
|||||||
# RUN: %fish %s
|
# RUN: %fish %s
|
||||||
|
|
||||||
function _status
|
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)
|
_tide_decolor (_tide_item_status)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -49,3 +50,10 @@ _status # CHECK: ✔ 1|0
|
|||||||
|
|
||||||
false | false
|
false | false
|
||||||
_status # CHECK: ✘ 1|1
|
_status # CHECK: ✘ 1|1
|
||||||
|
|
||||||
|
# Check that not command works
|
||||||
|
not true | false
|
||||||
|
_status # CHECK: ✔ 0|1
|
||||||
|
|
||||||
|
not false | true
|
||||||
|
_status # CHECK: ✘ 1|0
|
||||||
|
Loading…
Reference in New Issue
Block a user