Skip to content

Commit 0385afa

Browse files
committed
Remove an excessive test
1 parent 05a1b33 commit 0385afa

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

core/commonTest/src/kotlinx/serialization/BasicTypesSerializationTest.kt

-21
Original file line numberDiff line numberDiff line change
@@ -194,27 +194,6 @@ class BasicTypesSerializationTest {
194194
assertEquals(Duration.parseIsoString(durationString), other)
195195
}
196196

197-
@OptIn(ExperimentalTime::class)
198-
@Test
199-
fun testEncodeInstant() {
200-
val sb = StringBuilder()
201-
val out = KeyValueOutput(sb)
202-
203-
val instant = Instant.parse("2020-12-09T09:16:56.000124Z")
204-
out.encodeSerializableValue(Instant.serializer(), instant)
205-
206-
assertEquals("\"${instant}\"", sb.toString())
207-
}
208-
209-
@OptIn(ExperimentalTime::class)
210-
@Test
211-
fun testDecodeInstant() {
212-
val instantString = "2020-12-09T09:16:56.000124Z"
213-
val inp = KeyValueInput(Parser(StringReader("\"$instantString\"")))
214-
val other = inp.decodeSerializableValue(Instant.serializer())
215-
assertEquals(Instant.parse(instantString), other)
216-
}
217-
218197
@Test
219198
fun testNothingSerialization() {
220199
// impossible to deserialize Nothing

0 commit comments

Comments
 (0)