[Serialization] Migrate all tests to new test infrastructure

This commit is contained in:
Dmitriy Novozhilov
2022-08-24 17:33:39 +03:00
committed by teamcity
parent 4dd7437df1
commit a2ffba275c
47 changed files with 388 additions and 511 deletions
@@ -48,4 +48,4 @@ fun testKinds(): String {
fun box(): String {
return testData(testKinds())
}
}
@@ -20,4 +20,4 @@ fun box(): String {
val decoded = Json.decodeFromString(serial, s)
if (box.t != decoded.t || box.vs != decoded.vs) return "Incorrect deserialization"
return "OK"
}
}
@@ -25,4 +25,4 @@ fun test(targetString: String): String {
fun box(): String {
return test("""{"ctor":1,"ctorDependent":2,"body":"x","bodyDependent":3}""")
}
}
+1 -1
View File
@@ -42,4 +42,4 @@ fun testSerialization(previous: String): String {
fun box(): String {
return testSerialization(testSerializers())
}
}
@@ -16,4 +16,4 @@ fun box(): String {
val s = Json.encodeToString(Holder.serializer(), Holder(Foo(42)))
if (s != """{"f":42}""") return s
return "OK"
}
}
@@ -23,4 +23,4 @@ fun test(targetString: String): String {
fun box(): String {
return test("""{"ctor":1,"body":"x"}""")
}
}
@@ -34,4 +34,4 @@ fun test(targetString: String): String {
fun box(): String {
return test("""{"ctor":42,"body":"42"}""")
}
}
@@ -12,4 +12,4 @@ fun box(): String {
val decoded = Json.decodeFromString(FooBar.serializer(), encoded)
if (decoded !== FooBar) return "Incorrect object instance"
return "OK"
}
}