Skip to content

Commit 88ca356

Browse files
committed
Make tasty hash test a JUnit test
1 parent 38a6cf9 commit 88ca356

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/run-with-compiler/tasty-hash.scala renamed to compiler/test/dotty/tools/dotc/TastyHashTest.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
package dotty.tools.dotc
2+
3+
import org.junit.Test
4+
15
import dotty.tools.dotc.core.tasty.TastyHash.pjwHash64
26

3-
object Test {
4-
def main(args: Array[String]): Unit = {
7+
class TastyHashTest {
8+
@Test def pjwHash64Tests(): Unit = {
59
testHash(0L, Array.empty)
610
testHash(0L, Array(0))
711
testHash(1L, Array(1))

0 commit comments

Comments
 (0)