PeachPaletteTest.kt

870 B · raw

1package com.peachpasswords.ui.theme23import androidx.compose.ui.graphics.Color4import org.junit.Assert.assertEquals5import org.junit.Test67/**8 * Peach is dark-only. These pin the single palette factory so a future change9 * can't drift the near-black background or drop the live accent back to the10 * dark-only [PeachColors] singleton.11 */12class PeachPaletteTest {1314    @Test fun background_is_near_black() {15        assertEquals(Color(0xFF0C0A06), peachDark().Bg)16    }1718    @Test fun text_is_warm_parchment_on_that_background() {19        assertEquals(Color(0xFFF0E8D8), peachDark().T0)20    }2122    @Test fun accent_is_carried_into_the_palette() {23        val custom = Color(0xFF123456)24        assertEquals(custom, peachDark(custom).Accent)25    }2627    @Test fun default_accent_used_when_unspecified() {28        assertEquals(DEFAULT_ACCENT, peachDark().Accent)29    }30}