From 85b65bb104a325441c96a5b6f2f0e32c0ae68d22 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 20 Nov 2019 10:20:51 +0600 Subject: [PATCH] update ContentSerialization test --- .../postssystem/core/api/ContentSerialization.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/postssystem.core/src/commonTest/kotlin/com/insanusmokrassar/postssystem/core/api/ContentSerialization.kt b/postssystem.core/src/commonTest/kotlin/com/insanusmokrassar/postssystem/core/api/ContentSerialization.kt index 8013a64b..a4e0bc3d 100644 --- a/postssystem.core/src/commonTest/kotlin/com/insanusmokrassar/postssystem/core/api/ContentSerialization.kt +++ b/postssystem.core/src/commonTest/kotlin/com/insanusmokrassar/postssystem/core/api/ContentSerialization.kt @@ -7,12 +7,16 @@ import kotlin.test.Test import kotlin.test.assertEquals class ContentSerialization { + private val simpleTextTestEntries = 10 + private val simpleSpecialTestEntries = 10 + @Test fun test_that_content_correctly_serializing_and_deserializing() { - val contents = listOf( - SimpleTextContent("Example"), - SimpleSpecialContent("Some internal id") - ) + val contents = (0 until simpleTextTestEntries).map { + SimpleTextContent("Example$it") + } + (0 until simpleSpecialTestEntries).map { + SimpleSpecialContent("$it") + } val registeredContentFakes = contents.map { content -> RegisteredContent(