summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/js/tstdlib_imports.nim2
-rw-r--r--tests/test_nimscript.nims8
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/js/tstdlib_imports.nim b/tests/js/tstdlib_imports.nim
index 7611b7dcb..6fe3772d3 100644
--- a/tests/js/tstdlib_imports.nim
+++ b/tests/js/tstdlib_imports.nim
@@ -46,7 +46,7 @@ import std/[
 
   # Parsers:
   htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
-  # fails: parseopt
+  parseopt,
 
   # XML processing:
   xmltree, xmlparser,
diff --git a/tests/test_nimscript.nims b/tests/test_nimscript.nims
index 9bfdff55e..2468699a4 100644
--- a/tests/test_nimscript.nims
+++ b/tests/test_nimscript.nims
@@ -48,7 +48,7 @@ import std/[
 
   # Parsers:
   htmlparser, json, lexbase, parsecfg, parsecsv, parsesql, parsexml,
-  # fails: parseopt
+  parseopt,
 
   # XML processing:
   xmltree, xmlparser,
@@ -113,4 +113,8 @@ block:  # cpDir, cpFile, dirExists, fileExists, mkDir, mvDir, mvFile, rmDir, rmF
   doAssert not dirExists(subDir)
   doAssert dirExists(subDir2)
   mvDir(subDir2, subDir)
-  rmDir(dname)
\ No newline at end of file
+  rmDir(dname)
+
+block:
+  # check parseopt can get command line:
+  discard initOptParser()