Yokan / rebuild
Course 1 8624561

IosProfileDataStoreTest.kt

composeApp/src/iosTest/kotlin/eu/friedcutlet/yokan/services/webview/IosProfileDataStoreTest.kt

test / fixture18 lines
1package eu.friedcutlet.yokan.services.webview23import eu.friedcutlet.yokan.domain.ProfileId4import kotlin.test.Test5import kotlin.test.assertEquals6import kotlin.test.assertFailsWith7import kotlin.test.assertNotEquals8import platform.Foundation.NSUUID910class IosProfileDataStoreTest {11    @Test fun extraProfileMapsOneToOneOntoAPersistentStoreUuid() {12        val uuid = profileBrowserStoreUuid(ProfileId("p_0123456789abcdef0123456789abcdef"))13        assertEquals("01234567-89ab-cdef-0123-456789abcdef", uuid)14        assertEquals(uuid.uppercase(), NSUUID(uUIDString = uuid).UUIDString)15        assertNotEquals(uuid, profileBrowserStoreUuid(ProfileId("p_0123456789abcdef0123456789abcdee")))16        assertFailsWith<IllegalArgumentException> { profileBrowserStoreUuid(ProfileId.Default) }17    }18}19

Search chapters, reference and source filenames.