Skip to content

Commit ac7647f

Browse files
committed
Use JUnit assert
1 parent 88ca356 commit ac7647f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/test/dotty/tools/dotc/TastyHashTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dotty.tools.dotc
22

33
import org.junit.Test
4+
import org.junit.Assert.assertEquals
45

56
import dotty.tools.dotc.core.tasty.TastyHash.pjwHash64
67

@@ -22,8 +23,7 @@ class TastyHashTest {
2223
}
2324

2425
def testHash(expected: Long, arr: Array[Byte]): Unit = {
25-
val res = pjwHash64(arr)
26-
assert(res == expected, s"Exprected 0x${expected.toHexString}L but got 0X${res.toHexString}L")
26+
assertEquals(s"0x${expected.toHexString}L", s"0x${pjwHash64(arr).toHexString}L")
2727
}
2828

2929
}

0 commit comments

Comments
 (0)