From 9121746f059d4869f8791a05679bc6bd17af2e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Sun, 21 Apr 2024 20:54:04 +0200 Subject: [PATCH] test: code coverage for list-languages parameter --- CHANGELOG.md | 1 + tests/integration_tests.rs | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce975cde..fbf60912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - CICD: Stop building for x86_64-pc-windows-gnu which fails #3261 (Enselic) - CICD: CICD: replace windows-2019 runners with windows-2025 #3339 (@cyqsimon) - Build script: replace string-based codegen with quote-based codegen #3340 (@cyqsimon) +- Improve code coverage of `--list-languages` parameter #2942 (@sblondon) ## Syntaxes diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 540f85e8..c367c538 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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"),