tide/tests/_tide_item_rustc.test.fish
2021-04-24 18:14:30 -07:00

20 lines
284 B
Fish

# RUN: %fish %s
function _rustc
_tide_decolor (_tide_item_rustc)
end
set -l rustcDir ~/rustcTest
mkdir -p $rustcDir
cd $rustcDir
mock rustc --version "echo rustc 1.30.0"
set -lx tide_rustc_icon
_rustc # CHECK:
touch Cargo.toml
_rustc # CHECK:  1.30.0
rm -r $rustcDir