diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-06-29 17:56:06 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-07-02 16:30:35 -0700 |
commit | df09f6ed64aad3e83f98e13a3d7d9b3a82ccd0a8 (patch) | |
tree | 5eeae70f4ecc7293ddcc8e17a74e86945745510d /shared/src/test/scala/CoproductTypeFormatTests.scala | |
parent | c5c1aa6bc78b6ebc346befe9f4b434401a683a59 (diff) | |
download | spray-json-derivation-df09f6ed64aad3e83f98e13a3d7d9b3a82ccd0a8.tar.gz spray-json-derivation-df09f6ed64aad3e83f98e13a3d7d9b3a82ccd0a8.tar.bz2 spray-json-derivation-df09f6ed64aad3e83f98e13a3d7d9b3a82ccd0a8.zip |
Change GADT to ADT
Diffstat (limited to 'shared/src/test/scala/CoproductTypeFormatTests.scala')
-rw-r--r-- | shared/src/test/scala/CoproductTypeFormatTests.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/src/test/scala/CoproductTypeFormatTests.scala b/shared/src/test/scala/CoproductTypeFormatTests.scala index cd6a2ae..7da2041 100644 --- a/shared/src/test/scala/CoproductTypeFormatTests.scala +++ b/shared/src/test/scala/CoproductTypeFormatTests.scala @@ -36,24 +36,24 @@ class CoproductTypeFormatTests """{"type": "One"}""" ) - @gadt("kind") + @adt("kind") sealed abstract class Keyword(`type`: String) case class If(`type`: String) extends Keyword(`type`) implicit val keywordFormat: RootJsonFormat[Keyword] = jsonFormat[Keyword] - "GADT with type field alias" should behave like checkRoundtrip[Keyword]( + "ADT with type field alias" should behave like checkRoundtrip[Keyword]( If("class"), """{"kind":"If","type":"class"}""" ) - @gadt("""_`crazy type!`"""") + @adt("""_`crazy type!`"""") sealed abstract trait Crazy case class CrazyType() extends Crazy implicit val crazyFormat: RootJsonFormat[Crazy] = jsonFormat[Crazy] - "GADT with special characters in type field" should behave like checkRoundtrip[ + "ADT with special characters in type field" should behave like checkRoundtrip[ Crazy ]( CrazyType(), |