diff options
Diffstat (limited to 'tests/assert/testhelper.nim')
-rw-r--r-- | tests/assert/testhelper.nim | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/assert/testhelper.nim b/tests/assert/testhelper.nim deleted file mode 100644 index 03bdd2468..000000000 --- a/tests/assert/testhelper.nim +++ /dev/null @@ -1,12 +0,0 @@ -from strutils import endsWith, split -from os import isAbsolute - -proc checkMsg*(msg, expectedEnd, name: string, absolute = true)= - let filePrefix = msg.split(' ', maxSplit = 1)[0] - if absolute and not filePrefix.isAbsolute: - echo name, ":not absolute: `", msg & "`" - elif not msg.endsWith expectedEnd: - echo name, ":expected suffix:\n`" & expectedEnd & "`\ngot:\n`" & msg & "`" - else: - echo name, ":ok" - |