//! `palette` for `Purple` and `Sakura` (indexed, first slots differ).

use ratatui::style::Color;

use storageshower::types::ColorMode;
use storageshower::ui::palette;

#[test]
fn purple_sakura_both_six_indexed() {
    for mode in [ColorMode::Purple, ColorMode::Sakura] {
        let p = palette(mode);
        for c in [p.0, p.1, p.2, p.3, p.4, p.5] {
            assert!(matches!(c, Color::Indexed(_)));
        }
    }
}

#[test]
fn purple_first_differs_from_sakura_first() {
    let p = palette(ColorMode::Purple);
    let s = palette(ColorMode::Sakura);
    assert_ne!(p.0, s.0);
}
