2020-05-27 06:47:07 +00:00
|
|
|
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",
|
2020-08-02 21:22:26 +00:00
|
|
|
"base16-256",
|
2020-07-02 05:17:57 +00:00
|
|
|
"gruvbox",
|
|
|
|
"gruvbox-light",
|
|
|
|
"gruvbox-white",
|
2020-05-27 06:47:07 +00:00
|
|
|
"zenburn"
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|