From 2a011dd95de97cc32431526e2ef1ee46031f770e Mon Sep 17 00:00:00 2001 From: Avinder Bahra Date: Sun, 13 Oct 2024 10:12:55 +0100 Subject: [PATCH] consistent naming --- .../shared/src/test/scala/zio/schema/DeriveSchemaSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zio-schema-derivation/shared/src/test/scala/zio/schema/DeriveSchemaSpec.scala b/zio-schema-derivation/shared/src/test/scala/zio/schema/DeriveSchemaSpec.scala index bcd8a090b..189ef9f1f 100644 --- a/zio-schema-derivation/shared/src/test/scala/zio/schema/DeriveSchemaSpec.scala +++ b/zio-schema-derivation/shared/src/test/scala/zio/schema/DeriveSchemaSpec.scala @@ -588,7 +588,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS (a: TraitWithMiddleTrait) => a.isInstanceOf[TraitLeaf.type] ) - val caseMiddleTrait = Schema.Case[TraitWithMiddleTrait, MiddleTrait]( + val middleTraitCase = Schema.Case[TraitWithMiddleTrait, MiddleTrait]( "MiddleTrait", middleTraitSchema, (a: TraitWithMiddleTrait) => a.asInstanceOf[MiddleTrait], @@ -600,7 +600,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS Schema.Enum2[TraitLeaf.type, MiddleTrait, TraitWithMiddleTrait]( TypeId.parse("zio.schema.DeriveSchemaSpec.TraitWithMiddleTrait"), traitLeafCase, - caseMiddleTrait + middleTraitCase ) assert(derived)(hasSameSchema(expected))