tide/tests/_tide_item_rustc.test.fish

20 lines
291 B
Fish
Raw Normal View History

2021-04-25 04:01:02 +03:00
# RUN: %fish %s
2022-09-05 19:56:50 +03:00
_tide_parent_dirs
2021-04-25 04:01:02 +03:00
function _rustc
_tide_decolor (_tide_item_rustc)
end
set -l rustcDir (mktemp -d)
2021-04-25 04:14:30 +03:00
cd $rustcDir
2021-04-25 04:01:02 +03:00
mock rustc --version "echo rustc 1.30.0"
2021-04-25 04:14:30 +03:00
set -lx tide_rustc_icon
2021-04-25 04:01:02 +03:00
2021-04-25 04:14:30 +03:00
_rustc # CHECK:
2021-04-25 04:01:02 +03:00
touch Cargo.toml
2021-04-25 04:14:30 +03:00
_rustc # CHECK:  1.30.0
2021-04-25 04:01:02 +03:00
command rm -r $rustcDir