Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from circe/topic/encoders-too
Browse files Browse the repository at this point in the history
Encoders should work too
  • Loading branch information
travisbrown authored Jun 26, 2019
2 parents d3ff259 + 4e54cde commit cf4aeeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions not-java-time/src/main/scala/java/time/temporal/package.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package java.time.temporal

trait TemporalAccessor
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package io.circe.njt

import io.circe.{ Decoder, Json }
import io.circe.{ Decoder, Encoder, Json }
import org.scalatest.FunSuite

class NotJavaTimeTest extends FunSuite {
test("Using circe should not throw linking errors") {
test("Using Decoder should not throw linking errors") {
assert(Decoder[List[String]].decodeJson(Json.arr()) === Right(Nil))
}

test("Using Encoder should not throw linking errors") {
assert(Encoder[List[String]].apply(Nil) === Json.arr())
}
}

0 comments on commit cf4aeeb

Please sign in to comment.