package com.ponzischeme89.memby.ui.calendar

import org.junit.Assert.assertEquals
import org.junit.Test

class CalendarFocusTest {
    @Test
    fun `next month is the normal focus anchor`() {
        assertEquals(
            CalendarMonthFocusAnchor.NEXT,
            calendarMonthFocusAnchor(previousMonth = "2026-07", nextMonth = "2026-09"),
        )
    }

    @Test
    fun `latest month anchors focus to previous month`() {
        assertEquals(
            CalendarMonthFocusAnchor.PREVIOUS,
            calendarMonthFocusAnchor(previousMonth = "2026-12", nextMonth = ""),
        )
    }

    @Test
    fun `a calendar without travel controls uses ordinary focus search`() {
        assertEquals(
            CalendarMonthFocusAnchor.NONE,
            calendarMonthFocusAnchor(previousMonth = "", nextMonth = ""),
        )
    }
}
