mirror of
https://github.com/sharkdp/bat
synced 2024-12-18 00:03:05 +00:00
2461d22212
Branch: add_gruvbox_theme
38 lines
969 B
Rust
38 lines
969 B
Rust
use bat::assets::HighlightingAssets;
|
|
|
|
/// This test ensures that we are not accidentally removing themes due to submodule updates.
|
|
#[test]
|
|
fn all_themes_are_present() {
|
|
let assets = HighlightingAssets::from_binary();
|
|
|
|
let mut themes: Vec<_> = assets.themes().collect();
|
|
themes.sort();
|
|
|
|
assert_eq!(
|
|
themes,
|
|
vec![
|
|
"1337",
|
|
"DarkNeon",
|
|
"Dracula",
|
|
"GitHub",
|
|
"Monokai Extended",
|
|
"Monokai Extended Bright",
|
|
"Monokai Extended Light",
|
|
"Monokai Extended Origin",
|
|
"Nord",
|
|
"OneHalfDark",
|
|
"OneHalfLight",
|
|
"Solarized (dark)",
|
|
"Solarized (light)",
|
|
"Sublime Snazzy",
|
|
"TwoDark",
|
|
"ansi-dark",
|
|
"ansi-light",
|
|
"base16",
|
|
"gruvbox",
|
|
"gruvbox-light",
|
|
"gruvbox-white",
|
|
"zenburn"
|
|
]
|
|
);
|
|
}
|