Skip to content

Commit daed054

Browse files
author
artem.kupchinskiy
committed
[SCALA-26] removal of excess tests
1 parent cf3df0b commit daed054

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core-scala/src/test/scala/com/baeldung/scala/equality/EqualityTest.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import org.scalatest.FlatSpec
55
class EqualityTest extends FlatSpec {
66
"Equality operator for AnyVal" should "work as in Java" in {
77
val intAnyVal = 4
8-
val booleanAnyVal = false
98
assert(intAnyVal == 2 * 2)
10-
assert((intAnyVal > 10) == booleanAnyVal)
119
}
1210

1311
"Equality operator for referential types" should "work like null-safe equals()" in {
@@ -24,9 +22,7 @@ class EqualityTest extends FlatSpec {
2422
"Equals()" should "work as in Java" in {
2523
val str1 = new String("AnyRef")
2624
val str2 = new String("AnyRef")
27-
val str3 = null
2825
assert(str1.equals(str2))
29-
assertThrows[NullPointerException](str3.equals(str2))
3026
}
3127

3228
"Eq and ne" should "check referential equality" in {

0 commit comments

Comments
 (0)