Skip to content

Commit

Permalink
scala 2.13 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
htmldoug committed Mar 9, 2022
1 parent 4d82ff5 commit a12c795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ object NumberSoup {
)
Gen.listOf(numberParts).map(_.mkString).map(NumberSoup(_))
}
implicit val arb = Arbitrary(gen)
implicit val arb: Arbitrary[NumberSoup] = Arbitrary(gen)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.rallyhealth.weejson.v1.CanonicalizeNumsVisitor._
import com.rallyhealth.weejson.v1.jackson.{FromJson, ToJson, ToPrettyJson}
import com.rallyhealth.weejson.v1.wee_jsoniter_scala.FromJsoniterScala
import com.rallyhealth.weejson.v1.{BufferedValue, GenBufferedValue, Value}
import com.rallyhealth.weepickle.v1.NumberSoup.ValidJsonNum
import com.rallyhealth.weepickle.v1.core.{FromInput, NoOpVisitor, Visitor}
import org.scalactic.TypeCheckedTripleEquals
import org.scalatest.freespec.AnyFreeSpec
Expand Down Expand Up @@ -36,7 +35,7 @@ abstract class ParserSpec(parse: Array[Byte] => FromInput, depthLimit: Int = 100
"roundtrip example" in testValue(NumDouble(1.3424780377262655E-5))
"deep arr" in testDepth(Arr(_))
"deep obj" in testDepth(b => Obj("k" -> b))
"number soup" in forAll { soup: NumberSoup =>
"number soup" in forAll { (soup: NumberSoup) =>
whenever(soup.isInvalid) {
intercept[Exception] {
parse(soup.value.getBytes()).transform(NoOpVisitor)
Expand Down

0 comments on commit a12c795

Please sign in to comment.