Files
wren/test/io/stat/path_directory.wren
T

16 lines
660 B
Plaintext
Raw Normal View History

2016-02-07 09:56:16 -08:00
import "io" for Stat
2016-01-01 10:05:31 -08:00
2016-02-07 09:56:16 -08:00
var stat = Stat.path("test/io/directory/dir")
2016-01-01 10:05:31 -08:00
System.print(stat is Stat) // expect: true
System.print(stat.device is Num) // expect: true
System.print(stat.inode is Num) // expect: true
System.print(stat.mode is Num) // expect: true
System.print(stat.linkCount >= 1) // expect: true
2016-01-01 10:05:31 -08:00
System.print(stat.user is Num) // expect: true
System.print(stat.group is Num) // expect: true
System.print(stat.specialDevice) // expect: 0
System.print(stat.size > 0) // expect: true
2016-01-01 10:05:31 -08:00
System.print(stat.blockSize is Num) // expect: true
System.print(stat.blockCount is Num) // expect: true