File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
scala-core-8/src/test/scala-2/com/baeldung/scala/strings Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,17 @@ import org.scalatest.flatspec.AnyFlatSpec
4
4
import org .scalatest .matchers .should .Matchers
5
5
6
6
class CaseInsensitiveStringComparisonUnitTest extends AnyFlatSpec with Matchers {
7
-
8
7
" operating equals ignore case method on a string" should " return true if strings are the same when ignoring case" in {
9
8
val str = " Hello World"
10
9
val result = str.equalsIgnoreCase(" hello world" )
10
+
11
11
result should be(true )
12
12
}
13
13
14
14
" operating toLowerCase.contains on a string" should " return if strings are the same when ignoring case" in {
15
15
val str = " Hello World"
16
16
val result = str.toLowerCase.contains(" hello world" .toLowerCase)
17
+
17
18
result should be(true )
18
19
}
19
-
20
20
}
You can’t perform that action at this time.
0 commit comments