Skip to content

Commit 363e2fd

Browse files
committed
Revert "try to fix filename bug on windows"
This reverts commit 46dd3d6
1 parent 46dd3d6 commit 363e2fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/kotlin/assimp/anchor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.kotlintest.*
44
import org.lwjgl.BufferUtils
55
import java.io.*
66
import java.net.URL
7-
import java.nio.file.Paths
87

98
/**
109
* Created by elect on 14/01/2017.
@@ -31,7 +30,7 @@ fun getResource(resource: String): URL = ClassLoader.getSystemResource(resource)
3130
* @return the result of [Importer.readFile]
3231
*/
3332
fun Importer.testFile(path: URL, flags: AiPostProcessStepsFlags = 0, failOnNull: Boolean = true, verify: AiScene.() -> Unit = {}): AiScene? {
34-
return testFile(Paths.get(path.toURI()).toAbsolutePath().toString(), flags, failOnNull, verify)
33+
return testFile(path.file, flags, failOnNull, verify)
3534
}
3635

3736
/**

0 commit comments

Comments
 (0)