IosProfileDataStoreTest.kt
composeApp/src/iosTest/kotlin/eu/friedcutlet/yokan/services/webview/IosProfileDataStoreTest.kt
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