Fleshed out posix file test.
This commit is contained in:
@@ -100,12 +100,16 @@ class PosixFileTest extends Specification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def "can create and read symlink with unicode in its name"() {
|
def "can create and read symlink with unicode in its name"() {
|
||||||
|
def testFile = new File(tmpDir.root, "target\u03b2")
|
||||||
|
testFile.text = 'hi'
|
||||||
def symlinkFile = new File(tmpDir.root, "symlink\u03b2")
|
def symlinkFile = new File(tmpDir.root, "symlink\u03b2")
|
||||||
|
|
||||||
when:
|
when:
|
||||||
file.symlink(symlinkFile, "target\u03b2")
|
file.symlink(symlinkFile, testFile.name)
|
||||||
|
|
||||||
then:
|
then:
|
||||||
file.readLink(symlinkFile) == "target\u03b2"
|
file.readLink(symlinkFile) == testFile.name
|
||||||
|
symlinkFile.file
|
||||||
|
symlinkFile.canonicalFile == testFile.canonicalFile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user