diff --git a/assets/themes.bin b/assets/themes.bin index f1510b0e..9de98391 100644 Binary files a/assets/themes.bin and b/assets/themes.bin differ diff --git a/tests/assets.rs b/tests/assets.rs new file mode 100644 index 00000000..ab0f7686 --- /dev/null +++ b/tests/assets.rs @@ -0,0 +1,35 @@ +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", + "zenburn" + ] + ); +}