From 846da127c8867cb6e64b66ce9609457a542ff6c7 Mon Sep 17 00:00:00 2001 From: Avinder Bahra Date: Sun, 13 Oct 2024 10:09:37 +0100 Subject: [PATCH] consistent naming --- .../src/test/scala/zio/schema/DeriveSchemaSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 506f72d68..bcd8a090b 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 @@ -562,7 +562,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS () => MiddleTraitLeaf, Chunk.empty ) - val caseMiddleTraitLeaf = Schema.Case[MiddleTrait, MiddleTraitLeaf.type]( + val middleTraitLeafCase = Schema.Case[MiddleTrait, MiddleTraitLeaf.type]( "MiddleTraitLeaf", middleTraitLeafSchema, (a: MiddleTrait) => a.asInstanceOf[MiddleTraitLeaf.type], @@ -571,7 +571,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS ) val middleTraitSchema = Schema.Enum1[MiddleTraitLeaf.type, MiddleTrait]( TypeId.parse("zio.schema.DeriveSchemaSpec.MiddleTrait"), - caseMiddleTraitLeaf, + middleTraitLeafCase, Chunk(simpleEnum(automaticallyAdded = true)) ) @@ -580,7 +580,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS () => TraitLeaf, Chunk.empty ) - val caseTraitLeaf = Schema.Case[TraitWithMiddleTrait, TraitLeaf.type]( + val traitLeafCase = Schema.Case[TraitWithMiddleTrait, TraitLeaf.type]( "TraitLeaf", traitLeafSchema, (a: TraitWithMiddleTrait) => a.asInstanceOf[TraitLeaf.type], @@ -599,7 +599,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS val expected = Schema.Enum2[TraitLeaf.type, MiddleTrait, TraitWithMiddleTrait]( TypeId.parse("zio.schema.DeriveSchemaSpec.TraitWithMiddleTrait"), - caseTraitLeaf, + traitLeafCase, caseMiddleTrait )