Skip to content

Commit

Permalink
upgrade zio version (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Apr 9, 2022
1 parent 524ec90 commit 94d1ddd
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ addCommandAlias(

addCommandAlias("testJS", "zioJsonJS/test")

val zioVersion = "2.0.0-RC4"
val zioVersion = "2.0.0-RC5"

lazy val root = project
.in(file("."))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test.Assertion._
import zio.test._

object RefinedSpec extends ZIOSpecDefault {
val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Refined")(
test("Refined") {
assert("""{"name":""}""".fromJson[Person])(isLeft(equalTo(".name(Predicate isEmpty() did not fail.)"))) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import zio.test.Assertion._
import zio.test._

object ScalazSpec extends ZIOSpecDefault {
val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Scalaz")(
test("scalaz.IList[A]") {
assert(IList[Int]().toJson)(equalTo("[]")) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import zio.test._

object DeriveSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("DeriveCodec")(
suite("Decoding")(
test("parameterless products") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import zio.test._

object YamlDecoderSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("YamlDecoderSpec")(
test("object root") {
assert(ex1Yaml.fromYaml[Example])(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test._

object YamlEncoderSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("YamlEncoderSpec")(
test("object root") {
assert(ex1.toJsonAST.flatMap(_.toYaml(YamlOptions.default.copy(lineBreak = LineBreak.UNIX))))(
Expand Down
2 changes: 1 addition & 1 deletion zio-json/jvm/src/test/scala/zio/json/CarterSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object CarterSpec extends ZIOSpecDefault {
implicit val decoder: JsonDecoder[Testing1] = DeriveJsonDecoder.gen
}

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Carter")(
test("simple left") {
type Data = Union[String, Int]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import zio.test.Assertion._
import zio.test._

object StringMatrixSpec extends ZIOSpecDefault {
val spec: ZSpec[Environment, Failure] = suite("StringMatrix")(
val spec: ZSpec[Environment, Any] = suite("StringMatrix")(
test("positive succeeds") {
// Watch out: TestStrings were passed
check(genTestStrings) { xs =>
Expand Down
2 changes: 1 addition & 1 deletion zio-json/shared/src/test/scala/zio/json/CodecSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object CodecSpec extends ZIOSpecDefault {
implicit lazy val codec: JsonCodec[RecursiveOption] = DeriveJsonCodec.gen[RecursiveOption]
}

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("CodecSpec")(
suite("Codec regressions")(
test("option in recursive structure") {
Expand Down
2 changes: 1 addition & 1 deletion zio-json/shared/src/test/scala/zio/json/DecoderSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import scala.collection.{ SortedMap, immutable, mutable }

object DecoderSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Decoder")(
suite("fromJson")(
test("BigDecimal") {
Expand Down
2 changes: 1 addition & 1 deletion zio-json/shared/src/test/scala/zio/json/EncoderSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import scala.collection.{ immutable, mutable }
// zioJsonJVM/testOnly testzio.json.EncoderSpec
object EncoderSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Encoder")(
suite("toJson")(
suite("primitives")(
Expand Down
4 changes: 1 addition & 3 deletions zio-json/shared/src/test/scala/zio/json/Gens.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package testzio.json

import zio.Random
import zio.test.{ Gen, Sized }
import zio.test.Gen

import java.math.BigInteger
import java.time._
import scala.jdk.CollectionConverters._
import scala.util.Try
Expand Down
2 changes: 1 addition & 1 deletion zio-json/shared/src/test/scala/zio/json/JavaTimeSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object JavaTimeSpec extends ZIOSpecDefault {

private def equalToStringified(expected: String) = equalTo(s""""$expected"""")

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("java.time")(
suite("Encoder")(
test("DayOfWeek") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import java.time._

object RoundTripSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("RoundTrip")(
test("booleans") {
check(Gen.boolean)(assertRoundtrips[Boolean])
Expand Down
2 changes: 1 addition & 1 deletion zio-json/shared/src/test/scala/zio/json/ast/JsonSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import zio.test._

object JsonSpec extends ZIOSpecDefault {

val spec: ZSpec[Environment, Failure] =
val spec: ZSpec[Environment, Any] =
suite("Json")(
suite("equals")(
test("mismatched Json subtypes") {
Expand Down

0 comments on commit 94d1ddd

Please sign in to comment.