Add tests for fileops
This commit is contained in:
parent
9e0eb25685
commit
de4cb3f783
10 changed files with 1783 additions and 0 deletions
5
tests/unittests/common.nim
Normal file
5
tests/unittests/common.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import unittest
|
||||
|
||||
proc checkFile*(filepath, expected: string) =
|
||||
let result = readFile(filepath)
|
||||
check result == expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue