@@ -12,8 +12,6 @@ import kotlinx.serialization.encoding.CompositeDecoder.Companion.UNKNOWN_NAME
12
12
import kotlinx.serialization.modules.*
13
13
import kotlin.test.*
14
14
import kotlin.time.Duration
15
- import kotlin.time.Instant
16
- import kotlin.time.ExperimentalTime
17
15
18
16
/*
19
17
* Test ensures that type that aggregate all basic (primitive/collection/maps/arrays)
@@ -194,27 +192,6 @@ class BasicTypesSerializationTest {
194
192
assertEquals(Duration .parseIsoString(durationString), other)
195
193
}
196
194
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
-
218
195
@Test
219
196
fun testNothingSerialization () {
220
197
// impossible to deserialize Nothing
0 commit comments