File tree 1 file changed +0
-21
lines changed
core/commonTest/src/kotlinx/serialization
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -194,27 +194,6 @@ class BasicTypesSerializationTest {
194
194
assertEquals(Duration .parseIsoString(durationString), other)
195
195
}
196
196
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
197
@Test
219
198
fun testNothingSerialization () {
220
199
// impossible to deserialize Nothing
You can’t perform that action at this time.
0 commit comments