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