summaryrefslogtreecommitdiffstats
path: root/tests/assets.rs
blob: 7ced769c68512bc294065fe8a776bd4629f09859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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",
            "base16-256",
            "gruvbox",
            "gruvbox-light",
            "gruvbox-white",
            "zenburn"
        ]
    );
}