summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2020-05-03 00:51:59 +0300
committerGitHub <noreply@github.com>2020-05-02 23:51:59 +0200
commitfbc97e712a67f30076f7633880383c8c4ae7866f (patch)
tree3eec30d015360011fdfbb9ef71cfc85b172c3d67 /tests/stdlib
parent3be669be3255c6b47dd2542af9d2055a7d1207e3 (diff)
downloadNim-fbc97e712a67f30076f7633880383c8c4ae7866f.tar.gz
move since from inclrtl to std/private/since (#14188)
* move since from inclrtl to std/private/since
* move since import in system below for HCR
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tsince.nim (renamed from tests/stdlib/tinclrtl.nim)12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/stdlib/tinclrtl.nim b/tests/stdlib/tsince.nim
index 2d4c34a90..14dd09c15 100644
--- a/tests/stdlib/tinclrtl.nim
+++ b/tests/stdlib/tsince.nim
@@ -1,9 +1,9 @@
-include system/inclrtl
+import std/private/since
 
-proc fun1(): int {.since: (1,3).} = 12
-proc fun1Bad(): int {.since: (99,3).} = 12
-proc fun2(): int {.since: (1,3,1).} = 12
-proc fun2Bad(): int {.since: (99,3,1).} = 12
+proc fun1(): int {.since: (1, 3).} = 12
+proc fun1Bad(): int {.since: (99, 3).} = 12
+proc fun2(): int {.since: (1, 3, 1).} = 12
+proc fun2Bad(): int {.since: (99, 3, 1).} = 12
 
 doAssert fun1() == 12
 doAssert declared(fun1)
@@ -23,7 +23,7 @@ since (1, 3, 1):
   ok = true
 doAssert ok
 
-since (99,3):
+since (99, 3):
   doAssert false
 
 when false: