package com.cottondb.notes import androidx.compose.ui.unit.dp import org.junit.Assert.assertEquals import org.junit.Test /** * The side page's width. Upright it takes four fifths, so the list it pushes keeps a fifth in sight (the drawer, owner, * 22 Nov 2026; it was 84% and covered the list); in landscape it stops at 380dp (it covered 84% of the screen on the * emulator). */ class NotesSideWidthTest { @Test fun in_landscape_the_side_page_stops_at_its_most() = assertEquals(380f, sideWidthOf(914.dp).value, 0.5f) @Test fun upright_the_side_page_leaves_a_fifth_of_the_list_in_sight() = assertEquals(320f, sideWidthOf(400.dp).value, 0.5f) }