summary refs log tree commit diff stats
path: root/tests/system
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-03-11 00:01:27 +0800
committerGitHub <noreply@github.com>2022-03-10 17:01:27 +0100
commit4c76f9f1523a72f560138709642c2d51ea365b85 (patch)
tree42e8cbc4690c66ddb190aab111a9258b1d7dde51 /tests/system
parent6773ffa63d0b3ab8b8894e84ed417f4eaced9122 (diff)
downloadNim-4c76f9f1523a72f560138709642c2d51ea365b85.tar.gz
support useVersion:1.6 (#19601)
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/tuse_version.nim5
-rw-r--r--tests/system/tuse_version16.nim49
2 files changed, 51 insertions, 3 deletions
diff --git a/tests/system/tuse_version.nim b/tests/system/tuse_version.nim
index 36dac46ec..116ef3596 100644
--- a/tests/system/tuse_version.nim
+++ b/tests/system/tuse_version.nim
@@ -1,6 +1,5 @@
 discard """
-  cmd: "nim c --useVersion:1.0 -r $file"
-  output: "1.0.100"
+  matrix: "--useVersion:1.0"
 """
 
 {.warning[UnusedImport]: off.}
@@ -47,4 +46,4 @@ import std/[
 ]
 
 
-echo NimVersion
+doAssert NimVersion == "1.0.100"
diff --git a/tests/system/tuse_version16.nim b/tests/system/tuse_version16.nim
new file mode 100644
index 000000000..d5430db32
--- /dev/null
+++ b/tests/system/tuse_version16.nim
@@ -0,0 +1,49 @@
+discard """
+  matrix: "--useVersion:1.6"
+"""
+
+{.warning[UnusedImport]: off.}
+
+import std/[
+  # Core:
+  bitops, typetraits, lenientops, macros, volatile,
+
+  # Algorithms:
+  algorithm, sequtils,
+
+  # Collections:
+  critbits, deques, heapqueue, intsets, lists, options, sets,
+  sharedlist, tables,
+
+  # Strings:
+  editdistance, wordwrap, parseutils, ropes,
+  pegs, punycode, strformat, strmisc, strscans, strtabs,
+  strutils, unicode, unidecode,
+
+  # Generic operator system services:
+  os, streams,
+
+  # Math libraries:
+  complex, math, mersenne, random, rationals, stats, sums,
+
+  # Internet protocols:
+  httpcore, mimetypes, uri,
+
+  # Parsers:
+  htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
+
+  # XML processing:
+  xmltree, xmlparser,
+
+  # Generators:
+  htmlgen,
+
+  # Hashing:
+  base64, hashes,
+
+  # Miscellaneous:
+  colors, sugar, varints,
+]
+
+
+doAssert NimVersion == "1.6.100"