Cotton code
20 lines · 762 B · KotlinRaw
package com.cottondb.cinemasimport com.cottondb.cinemas.player.handedBackimport org.junit.Assert.assertEqualsimport org.junit.Assert.assertFalseimport org.junit.Test/** * A film sent to a TV plays there or it does not; it is never pulled back to play on the phone (the owner, 18 Nov * 2026). The hands-on pass found Android's player playing on from the phone when the cast session ended; now the film * waits there, paused where the receiver stood. */class FilmHandedBackTest {    @Test fun a_film_the_tv_let_go_of_waits_paused_on_the_phone() {        val back = handedBack(754_000L)        assertEquals(754_000L, back.at)        assertFalse("never played on the phone by itself", back.plays)        assertEquals(0L, handedBack(-1L).at)    }}