Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ object BuildHelper {
val Scala213: String = versions("2.13")
val ScalaDotty: String = "3.1.0" //versions.getOrElse("3.0", versions("3.1"))

val zioVersion = "1.0.12"
val zioJsonVersion = "0.2.0-M2"
val zioPreludeVersion = "1.0.0-RC7"
val zioOpticsVersion = "0.1.0"
val silencerVersion = "1.7.6"
val zioVersion = "2.0.0-RC1"
val zioJsonVersion = "0.3.0-RC1-1"
val zioPreludeVersion = "1.0.0-RC9"
val zioOpticsVersion = "0.2.0-RC1"
val silencerVersion = "1.7.7"

private val testDeps = Seq(
"dev.zio" %% "zio-test" % zioVersion % "test",
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.4")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.32")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.33")
addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "0.2.10")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
test("fail") {
assert(Schema.fail("error").makeAccessors(builder).asInstanceOf[Unit])(isUnit)
},
testM("primitive") {
test("primitive") {
check(SchemaGen.anyPrimitive) { schema =>
assert(schema.makeAccessors(builder))(isUnit)
}
},
testM("sequence") {
test("sequence") {
check(SchemaGen.anySchema) { elementSchema =>
val collectionSchema = elementSchema.repeated
val traversal = collectionSchema.makeAccessors(builder)
Expand All @@ -33,7 +33,7 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
)(isTrue)
}
},
testM("transform") {
test("transform") {
check(SchemaGen.anyPrimitive) { schema =>
val transform = schema.transformOrFail[Unit](_ => Left("error"), _ => Left("error"))

Expand All @@ -45,7 +45,7 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
)(isTrue)
}
},
testM("optional") {
test("optional") {
check(SchemaGen.anyPrimitive) { schema =>
val optionalSchema: Schema.Optional[_] = schema.optional.asInstanceOf[Schema.Optional[_]]
val enumSchema = optionalSchema.toEnum
Expand All @@ -63,7 +63,7 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
)(isTrue)
}
},
testM("tuple") {
test("tuple") {
check(SchemaGen.anyPrimitive <*> SchemaGen.anyPrimitive) {
case (leftSchema, rightSchema) =>
val tupleSchema: Schema.Tuple[_, _] = (leftSchema <*> rightSchema).asInstanceOf[Schema.Tuple[_, _]]
Expand All @@ -81,7 +81,7 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
)(isTrue)
}
},
testM("either") {
test("either") {
check(SchemaGen.anyPrimitive <*> SchemaGen.anyPrimitive) {
case (leftSchema, rightSchema) =>
val eitherSchema: Schema.EitherSchema[_, _] =
Expand All @@ -103,7 +103,7 @@ object AccessorBuilderSpec extends DefaultRunnableSpec {
)(isTrue)
}
},
testM("lazy") {
test("lazy") {
check(SchemaGen.anyPrimitive) { schema =>
val lazySchema = Schema.defer(schema)
val eagerAccessor: Any = schema.makeAccessors(builder)
Expand Down
Loading