1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 03:12:25 +01:00

test: code coverage for list-languages parameter

This commit is contained in:
Stéphane Blondon
2024-04-21 20:54:04 +02:00
committed by Martin Nordholts
parent f1d45da676
commit 9121746f05
2 changed files with 10 additions and 0 deletions

View File

@@ -353,6 +353,15 @@ fn list_themes_to_piped_output() {
);
}
#[test]
fn list_languages() {
bat()
.arg("--list-languages")
.assert()
.success()
.stdout(predicate::str::contains("Rust").normalize());
}
#[test]
#[cfg_attr(
any(not(feature = "git"), feature = "lessopen", target_os = "windows"),