2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-08 19:10:41 +00:00
bat/tests/assets.rs

43 lines
1.1 KiB
Rust
Raw Permalink Normal View History

use bat::assets::HighlightingAssets;
/// This test ensures that we are not accidentally removing themes due to submodule updates.
/// It is 'ignore'd by default because it requires themes.bin to be up-to-date.
#[test]
#[ignore]
fn all_themes_are_present() {
let assets = HighlightingAssets::from_binary();
let mut themes: Vec<_> = assets.themes().collect();
2021-01-09 18:16:07 +00:00
themes.sort_unstable();
assert_eq!(
themes,
vec![
"1337",
2020-10-20 14:10:57 +00:00
"Coldark-Cold",
"Coldark-Dark",
"DarkNeon",
"Dracula",
"GitHub",
"Monokai Extended",
"Monokai Extended Bright",
"Monokai Extended Light",
"Monokai Extended Origin",
"Nord",
"OneHalfDark",
"OneHalfLight",
"Solarized (dark)",
"Solarized (light)",
"Sublime Snazzy",
"TwoDark",
"Visual Studio Dark+",
2020-12-21 08:27:33 +00:00
"ansi",
"base16",
2020-08-02 21:22:26 +00:00
"base16-256",
"gruvbox-dark",
"gruvbox-light",
"zenburn"
]
);
}