diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh index 7fd10f6..71224fa 100644 --- a/test/suite/batgrep.sh +++ b/test/suite/batgrep.sh @@ -124,3 +124,13 @@ test:output_without_separator() { batgrep "ca" file.txt --no-separator --color=always } + +test:sanity_rg_works() { + description "Ensure the ripgrep executable works" + + require_rg + + rg --version + rg "ca" file.txt | grep "ca" || fail "Ripgrep executable not working." +} +