aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/CoproductTypeFormats.scala
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-02-14 15:00:52 -0800
committerJakob Odersky <jakob@odersky.com>2018-02-14 15:00:52 -0800
commit7ab0889d7ab4480d0d90346432006ffd345b4916 (patch)
treefccce4902dfc4241a651dfac32e4ef77288de3c9 /src/test/scala/CoproductTypeFormats.scala
parent5a37bfee89a2b5ae17c7980327a92c381c006cf7 (diff)
downloadspray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.tar.gz
spray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.tar.bz2
spray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.zip
Remove need for special case for enums
Diffstat (limited to 'src/test/scala/CoproductTypeFormats.scala')
-rw-r--r--src/test/scala/CoproductTypeFormats.scala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/scala/CoproductTypeFormats.scala b/src/test/scala/CoproductTypeFormats.scala
index f16e4c7..f9b71b8 100644
--- a/src/test/scala/CoproductTypeFormats.scala
+++ b/src/test/scala/CoproductTypeFormats.scala
@@ -31,10 +31,10 @@ class CoproductTypeFormats
"""{"type":"Plus","lhs":{"type":"Value","x":42},"rhs":{"type":"Value","x":0}}"""
)
- // "Case object child" should behave like checkCoherence[Expr](
- // One,
- // """{"type":"One"}"""
- // )
+ "Case object child" should behave like checkCoherence[Expr](
+ One,
+ """"One""""
+ )
@gadt("kind")
sealed abstract class Keyword(`type`: String)
@@ -45,7 +45,6 @@ class CoproductTypeFormats
"""{"kind":"If","type":"class"}"""
)
- @enum
sealed trait Enum
case object A extends Enum
case object B extends Enum