From 0eed49e1da3ae1e267e3469757668f66e39756dc Mon Sep 17 00:00:00 2001 From: Marko Date: Tue, 24 Sep 2024 13:49:28 +0200 Subject: [PATCH] tests fixed --- .../kernel/types/CollationIdentifierSuite.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/kernel-api/src/test/scala/io/delta/kernel/types/CollationIdentifierSuite.scala b/kernel/kernel-api/src/test/scala/io/delta/kernel/types/CollationIdentifierSuite.scala index a3de8e8cc2..2e4f8c2994 100644 --- a/kernel/kernel-api/src/test/scala/io/delta/kernel/types/CollationIdentifierSuite.scala +++ b/kernel/kernel-api/src/test/scala/io/delta/kernel/types/CollationIdentifierSuite.scala @@ -33,11 +33,11 @@ class CollationIdentifierSuite extends AnyFunSuite { ), ( s"$PROVIDER_ICU.sr_Cyrl_SRB", - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB") + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB") ), ( s"$PROVIDER_ICU.sr_Cyrl_SRB.75.1", - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB", Optional.of("75.1")) + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB.75.1") ) ).foreach { case(stringIdentifier, collationIdentifier) => @@ -65,11 +65,11 @@ class CollationIdentifierSuite extends AnyFunSuite { s"$PROVIDER_SPARK.$DEFAULT_COLLATION_NAME" ), ( - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB"), + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB"), s"$PROVIDER_ICU.SR_CYRL_SRB" ), ( - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB", Optional.of("75.1")), + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB.75.1"), s"$PROVIDER_ICU.SR_CYRL_SRB" ) ).foreach { @@ -85,11 +85,11 @@ class CollationIdentifierSuite extends AnyFunSuite { s"$PROVIDER_SPARK.$DEFAULT_COLLATION_NAME" ), ( - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB"), + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB"), s"$PROVIDER_ICU.SR_CYRL_SRB" ), ( - new CollationIdentifier(PROVIDER_ICU, "sr_Cyrl_SRB", Optional.of("75.1")), + CollationIdentifier.fromString(s"$PROVIDER_ICU.sr_Cyrl_SRB.75.1"), s"$PROVIDER_ICU.SR_CYRL_SRB.75.1" ) ).foreach {