summary refs log tree commit diff stats
path: root/tests/stdlib/tstaticos.nim
blob: 41ab995dd7eeb73f57f88e95b5c160680b03e146 (plain) (blame)
1
2
3
4
5
6
7
8
import std/[assertions, staticos, os]

block:
  static:
    doAssert staticDirExists("MISSINGFILE") == false
    doAssert staticFileExists("MISSINGDIR") == false
    doAssert staticDirExists(currentSourcePath().parentDir)
    doAssert staticFileExists(currentSourcePath())