Cotton code
16 lines · 657 B · KotlinRaw
package com.cottondb.notesimport androidx.compose.ui.unit.dpimport org.junit.Assert.assertEqualsimport 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)}