We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ca356 commit ac7647fCopy full SHA for ac7647f
compiler/test/dotty/tools/dotc/TastyHashTest.scala
@@ -1,6 +1,7 @@
1
package dotty.tools.dotc
2
3
import org.junit.Test
4
+import org.junit.Assert.assertEquals
5
6
import dotty.tools.dotc.core.tasty.TastyHash.pjwHash64
7
@@ -22,8 +23,7 @@ class TastyHashTest {
22
23
}
24
25
def testHash(expected: Long, arr: Array[Byte]): Unit = {
- val res = pjwHash64(arr)
26
- assert(res == expected, s"Exprected 0x${expected.toHexString}L but got 0X${res.toHexString}L")
+ assertEquals(s"0x${expected.toHexString}L", s"0x${pjwHash64(arr).toHexString}L")
27
28
29
0 commit comments