From 1a2b7888c44b7e87e798b6953704fbee5a4958c7 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Tue, 6 Mar 2018 21:40:40 -0800 Subject: Revise naming in tests --- src/test/scala/ProductTypeFormats.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/scala/ProductTypeFormats.scala') diff --git a/src/test/scala/ProductTypeFormats.scala b/src/test/scala/ProductTypeFormats.scala index 48f1bf1..02fb554 100644 --- a/src/test/scala/ProductTypeFormats.scala +++ b/src/test/scala/ProductTypeFormats.scala @@ -17,24 +17,24 @@ class ProductTypeFormats case class E(d: D.type) case class F(x: Int) - "No-parameter product" should behave like checkCoherence(A(), "{}") + "No-parameter product" should behave like checkRoundtrip(A(), "{}") - "Simple parameter product" should behave like checkCoherence( + "Simple parameter product" should behave like checkRoundtrip( B(42, "Hello World", Map("a" -> 1, "b" -> -1024)), """{ "x": 42, "b": "Hello World", "mp": { "a": 1, "b": -1024 } }""" ) - "Nested parameter product" should behave like checkCoherence( + "Nested parameter product" should behave like checkRoundtrip( C(B(42, "Hello World", Map("a" -> 1, "b" -> -1024))), """{"b" :{ "x": 42, "b": "Hello World", "mp": { "a": 1, "b": -1024 } } }""" ) - "Case object" should behave like checkCoherence( + "Case object" should behave like checkRoundtrip( D, "{}" ) - "Case object as parameter" should behave like checkCoherence( + "Case object as parameter" should behave like checkRoundtrip( E(D), """{"d":{}}""" ) @@ -46,7 +46,7 @@ class ProductTypeFormats F(-js.asJsObject.fields("x").convertTo[Int]) } - "Overriding with a custom format" should behave like checkCoherence( + "Overriding with a custom format" should behave like checkRoundtrip( F(2), """{"x":-2}""" ) -- cgit v1.2.3