[Serialization] Migrate all tests to new test infrastructure
This commit is contained in:
committed by
teamcity
parent
4dd7437df1
commit
a2ffba275c
@@ -48,4 +48,4 @@ fun testKinds(): String {
|
||||
|
||||
fun box(): String {
|
||||
return testData(testKinds())
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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}""")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"}""")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user