Skip to content

Commit

Permalink
ZIO 2.0.0-RC5 (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo authored Apr 9, 2022
1 parent 8dae057 commit 09f39e6
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ object BuildHelper {
val Scala213: String = versions("2.13")
val ScalaDotty: String = "3.1.0" //versions.getOrElse("3.0", versions("3.1"))

val zioVersion = "2.0.0-RC4"
val zioJsonVersion = "0.3.0-RC5"
val zioPreludeVersion = "1.0.0-RC12"
val zioOpticsVersion = "0.2.0-RC3"
val zioVersion = "2.0.0-RC5"
val zioJsonVersion = "0.3.0-RC7"
val zioPreludeVersion = "1.0.0-RC13"
val zioOpticsVersion = "2.0.0-RC4"
val silencerVersion = "1.7.8"

private val testDeps = Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object AccessorBuilderSpec extends ZIOSpecDefault {

private val builder: TestAccessorBuilder = new TestAccessorBuilder

override def spec: ZSpec[Environment, Failure] = suite("AccessorBuilder")(
override def spec: ZSpec[Environment, Any] = suite("AccessorBuilder")(
test("fail") {
assert(Schema.fail("error").makeAccessors(builder).asInstanceOf[Unit])(isUnit)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object DefaultValueSpec extends ZIOSpecDefault {
implicit lazy val schema: Schema[Status] = DeriveSchema.gen[Status]
}

def spec: ZSpec[Environment, Failure] = suite("Default Value Spec")(
def spec: ZSpec[Environment, Any] = suite("Default Value Spec")(
suite("Primitive")(
test("UnitType default value") {
assert(Primitive(StandardType.UnitType).defaultValue)(isRight(equalTo(())))
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/zio/schema/DiffSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import zio.{ Chunk, URIO, ZIO }

object DiffSpec extends ZIOSpecDefault with DefaultJavaTimeSchemas {

def spec: ZSpec[Environment, Failure] = suite("DiffSpec")(
def spec: ZSpec[Environment, Any] = suite("DiffSpec")(
suite("identity law")(
suite("standard types")(
test("Int")(diffIdentityLaw[Int]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test.{ Sized, TestConfig, _ }

object DynamicValueSpec extends ZIOSpecDefault {

def spec: ZSpec[Environment, Failure] =
def spec: ZSpec[Environment, Any] =
suite("DynamicValueSpec")(
suite("Primitives")(primitiveTests: _*),
test("round-trips Records") {
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/zio/schema/MigrationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import zio.test._

object MigrationSpec extends ZIOSpecDefault {

override def spec: ZSpec[Environment, Failure] = suite("Migration Spec")(
override def spec: ZSpec[Environment, Any] = suite("Migration Spec")(
suite("Derivation")(
suite("Value")(
test("change type") {
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/zio/schema/SchemaAstSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test._

object SchemaAstSpec extends ZIOSpecDefault {

def spec: ZSpec[Environment, Failure] = suite("SchemaAst")(
def spec: ZSpec[Environment, Any] = suite("SchemaAst")(
suite("from schema")(
test("primitive") {
check(SchemaGen.anyPrimitive) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test._
object SchemaMigrationSpec extends ZIOSpecDefault {
import SchemaAssertions._

override def spec: ZSpec[TestEnvironment, Failure] = suite("Schema Migration Spec")(
override def spec: ZSpec[TestEnvironment, Any] = suite("Schema Migration Spec")(
suite("case class")(
suite("isomorphisms")(isomorphismTests: _*),
test("delete field recursively") {
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/src/test/scala/zio/schema/SchemaSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import zio.test.{ ZSpec, _ }

object SchemaSpec extends ZIOSpecDefault {

def spec: ZSpec[Environment, Failure] = suite("Schema Spec")(
def spec: ZSpec[Environment, Any] = suite("Schema Spec")(
suite("Should have valid equals")(
test("primitive") {
assert(schemaUnit)(equalTo(schemaUnit))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import zio.test._

object NodePathSpec extends ZIOSpecDefault {

override def spec: ZSpec[Environment, Failure] = suite("NodePath")(
override def spec: ZSpec[Environment, Any] = suite("NodePath")(
suite("relativeTo")(
test("compute relative subpath") {
val path = NodePath.root / "foo" / "bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault {

}

override def spec: ZSpec[Environment, Failure] = suite("DeriveSchemaSpec")(
override def spec: ZSpec[Environment, Any] = suite("DeriveSchemaSpec")(
suite("Derivation")(
test("correctly derives case class") {
assert(Schema[User].toString)(not(containsString("null")) && not(equalTo("$Lazy$")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import zio.test._

object LensSpec extends ZIOSpecDefault {

def spec: ZSpec[Environment, Failure] = suite("LensSpec")(
def spec: ZSpec[Environment, Any] = suite("LensSpec")(
suite("constructors")(
test("first")(lensLaws(Gen.int.zip(Gen.int), Gen.int)(Lens.first)),
test("second")(lensLaws(Gen.int.zip(Gen.int), Gen.int)(Lens.second)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import zio.test.Assertion._
import zio.test._

object DeriveGenSpec extends ZIOSpecDefault {
override def spec: ZSpec[Environment, Failure] = suite("DeriveGenSpec")(
override def spec: ZSpec[Environment, Any] = suite("DeriveGenSpec")(
test("correctly derives Primitives") {
for {
unit <- generateValue(DeriveGen.gen(unitSchema))
Expand Down

0 comments on commit 09f39e6

Please sign in to comment.