mirror of
https://github.com/InsanusMokrassar/SDI.git
synced 2024-06-02 07:55:13 +00:00
15 lines
393 B
Kotlin
15 lines
393 B
Kotlin
package dev.inmo.sdi
|
|
|
|
import kotlinx.serialization.InternalSerializationApi
|
|
import kotlin.test.assertEquals
|
|
|
|
@InternalSerializationApi
|
|
fun testModuleSerialization(
|
|
module: Module
|
|
) {
|
|
val serializedModule = loadModule(nonStrictJson.encodeToString(DefaultModuleSerializer, module))
|
|
module.forEach { (key, value) ->
|
|
assertEquals(value, serializedModule.getValue(key))
|
|
}
|
|
}
|