mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-29 03:04:04 +01:00
test: code coverage for list-languages parameter
This commit is contained in:
parent
bb4d1cbd2e
commit
19c422fb44
@ -47,6 +47,7 @@
|
|||||||
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
|
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
|
||||||
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
|
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
|
||||||
- Add syntax mapping for Wireguard config #2874 (@cyqsimon)
|
- Add syntax mapping for Wireguard config #2874 (@cyqsimon)
|
||||||
|
- Improve code coverage of `--list-languages` parameter #2942 (@sblondon)
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
|
|
||||||
|
@ -307,6 +307,15 @@ fn list_themes_without_colors() {
|
|||||||
.stdout(predicate::str::contains(default_theme_chunk).normalize());
|
.stdout(predicate::str::contains(default_theme_chunk).normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn list_languages() {
|
||||||
|
bat()
|
||||||
|
.arg("--list-languages")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::str::contains("Rust").normalize());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg_attr(any(not(feature = "git"), target_os = "windows"), ignore)]
|
#[cfg_attr(any(not(feature = "git"), target_os = "windows"), ignore)]
|
||||||
fn short_help() {
|
fn short_help() {
|
||||||
|
Loading…
Reference in New Issue
Block a user