Skip to content

Commit

Permalink
test: Drop needless test
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Aug 11, 2024
1 parent 7f2fc02 commit a42e592
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/jvmTest/kotlin/com/charleskorn/kaml/JvmYamlWritingTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
package com.charleskorn.kaml

import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import io.kotest.matchers.shouldBe
import it.krzeminski.snakeyaml.engine.kmp.common.ScalarStyle
import kotlinx.serialization.Serializable
import kotlinx.serialization.builtins.serializer
import java.io.ByteArrayOutputStream
Expand Down Expand Up @@ -279,20 +277,9 @@ class JvmYamlWritingTest : DescribeSpec({
Plain 3
'
""".trimIndent()
}

describe("Ensure all StringScalarStyle and ScalarStyle values match 1 on 1") {
// Mapping the StringScalarStyles to ScalarStyle must result in 100% coverage
val mappedStringScalarStyles = StringScalarStyle.entries.map { it.toScalarStyle() }
ScalarStyle.entries.shouldContainExactlyInAnyOrder(mappedStringScalarStyles)

// The NAME of each of the enums in both must also be identical
StringScalarStyle.entries.forEach {
it.toScalarStyle().name shouldBe it.name
}
}
}
})

Expand Down

0 comments on commit a42e592

Please sign in to comment.