tide/tests/_tide_item_rustc.test.fish
Branch Vincent 740904fe6a
isolate tests and add Makefile (#179)
* isolate tests

* add Makefile

* Makefile edits

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2021-07-25 10:46:58 -07:00

19 lines
265 B
Fish

# RUN: %fish %s
function _rustc
_tide_decolor (_tide_item_rustc)
end
set -l rustcDir (mktemp -d)
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