Skip to content

Commit 5c9c6dd

Browse files
committed
Changed the contains test
1 parent 4b14555 commit 5c9c6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala-core-8/src/test/scala-2/com/baeldung/scala/strings/CaseInsensitiveStringComparisonUnitTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CaseInsensitiveStringComparisonUnitTest extends AnyFlatSpec with Matchers
1313

1414
"operating toLowerCase.contains on a string" should "return if strings are the same when ignoring case" in {
1515
val str = "Hello World"
16-
val result = str.toLowerCase.contains("hello world".toLowerCase)
16+
val result = str.toLowerCase.contains("hello".toLowerCase)
1717

1818
result should be(true)
1919
}

0 commit comments

Comments
 (0)