From 5eb5739671d58d47b6922057b24afed9e5b987bb Mon Sep 17 00:00:00 2001 From: pfeme Date: Fri, 2 Aug 2024 12:45:31 +0200 Subject: [PATCH] s --- .../zio/schema/DynamicValueSpec.scala | 20 +++++++++---------- .../zio/schema/DefaultValueSpec.scala | 0 2 files changed, 10 insertions(+), 10 deletions(-) rename tests/shared/src/test/{scala => scala-2 copy}/zio/schema/DynamicValueSpec.scala (86%) rename tests/shared/src/test/{scala => scala-2}/zio/schema/DefaultValueSpec.scala (100%) diff --git a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala b/tests/shared/src/test/scala-2 copy/zio/schema/DynamicValueSpec.scala similarity index 86% rename from tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala rename to tests/shared/src/test/scala-2 copy/zio/schema/DynamicValueSpec.scala index 682710587..4ce3d6456 100644 --- a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala +++ b/tests/shared/src/test/scala-2 copy/zio/schema/DynamicValueSpec.scala @@ -25,7 +25,7 @@ object DynamicValueSpec extends ZIOSpecDefault { }, test("round-trips Eithers") { check(SchemaGen.anyEitherAndValue) { - case (schema: Schema[Either[_, _]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[Either[?, ?]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips Tuples") { @@ -35,38 +35,38 @@ object DynamicValueSpec extends ZIOSpecDefault { }, test("round-trips Optionals") { check(SchemaGen.anyOptionalAndValue) { - case (schema: Schema[Option[_]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[Option[?]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips Transform") { check(SchemaGen.anyTransformAndValue) { - case (schema: Schema[_], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips CaseClass") { check(SchemaGen.anyCaseClassAndValue) { - case (schema: Schema[_], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips Enum") { check(SchemaGen.anyEnumAndValue) { - case (schema: Schema[_], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips any un-nested schema") { check(SchemaGen.anyLeafAndValue) { - case (schema: Schema[_], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips any nested schema") { check(SchemaGen.anyTree(1).flatMap(s => DynamicValueGen.anyDynamicValueOfSchema(s).map(s -> _))) { case (schema, dynamic) => - assert(schema.asInstanceOf[Schema[_]].fromDynamic(dynamic))(isRight) + assert(schema.asInstanceOf[Schema[?]].fromDynamic(dynamic))(isRight) } }, test("round-trips recursive data types") { check(SchemaGen.anyRecursiveTypeAndValue) { - case (schema: Schema[_], a) => + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, @@ -77,12 +77,12 @@ object DynamicValueSpec extends ZIOSpecDefault { }, test("round-trips set") { check(SchemaGen.anySetAndValue) { - case (schema: Schema[_], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[?], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } }, test("round-trips map") { check(SchemaGen.anyMapAndValue) { - case (schema: Schema[Map[_, _]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) + case (schema: Schema[Map[?, ?]], a) => assert(schema.fromDynamic(schema.toDynamic(a)))(isRight(equalTo(a))) } } ), diff --git a/tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala b/tests/shared/src/test/scala-2/zio/schema/DefaultValueSpec.scala similarity index 100% rename from tests/shared/src/test/scala/zio/schema/DefaultValueSpec.scala rename to tests/shared/src/test/scala-2/zio/schema/DefaultValueSpec.scala