Skip to content

Commit b80c3b7

Browse files
committed
Fix typo in idempotency test filter
1 parent 70cecaa commit b80c3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/idempotency/IdempotencyCheck.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object IdempotencyCheck {
2525
val bytecodeFiles = {
2626
def bytecodeFiles(paths: JStream[JPath], dir: String): List[(String, JPath)] = {
2727
def isBytecode(file: String) = file.endsWith(".class") || file.endsWith(".tasty")
28-
def tupleWithName(f: JPath) = (f.toString.substring(dir.length + 1, f.toString.length - 6), f)
28+
def tupleWithName(f: JPath) = (f.toString.substring(dir.length, f.toString.length - 6), f)
2929
paths.iterator.asScala.filter(path => isBytecode(path.toString)).map(tupleWithName).toList
3030
}
3131
bytecodeFiles(JFiles.walk(dir1Path), dir1String) ++ bytecodeFiles(JFiles.walk(dir2Path), dir2String)

0 commit comments

Comments
 (0)