diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-02-14 15:00:52 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-02-14 15:00:52 -0800 |
commit | 7ab0889d7ab4480d0d90346432006ffd345b4916 (patch) | |
tree | fccce4902dfc4241a651dfac32e4ef77288de3c9 /src/test/scala/CoproductTypeFormats.scala | |
parent | 5a37bfee89a2b5ae17c7980327a92c381c006cf7 (diff) | |
download | spray-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.scala | 9 |
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 |