summary refs log tree commit diff stats
path: root/tests/misc/tlastmod.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tlastmod.nim')
-rw-r--r--tests/misc/tlastmod.nim15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/misc/tlastmod.nim b/tests/misc/tlastmod.nim
index c622ab518..1cc1d4bd9 100644
--- a/tests/misc/tlastmod.nim
+++ b/tests/misc/tlastmod.nim
@@ -1,18 +1,25 @@
+discard """
+outputsub: "is newer than"
+"""
 # test the new LastModificationTime() proc
 
+let
+  file1 = "tests/testdata/data.csv"
+  file2 = "tests/testdata/doc1.xml"
+
 import
   os, times, strutils
 
 proc main() =
   var
     a, b: Time
-  a = getLastModificationTime(paramStr(1))
-  b = getLastModificationTime(paramStr(2))
+  a = getLastModificationTime(file1)
+  b = getLastModificationTime(file2)
   writeLine(stdout, $a)
   writeLine(stdout, $b)
   if a < b:
-    write(stdout, "$2 is newer than $1\n" % [paramStr(1), paramStr(2)])
+    write(stdout, "$2 is newer than $1\n" % [file1, file2])
   else:
-    write(stdout, "$1 is newer than $2\n" % [paramStr(1), paramStr(2)])
+    write(stdout, "$1 is newer than $2\n" % [file1, file2])
 
 main()