diff options
author | Miran <narimiran@disroot.org> | 2019-01-25 13:13:55 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-25 13:13:55 +0100 |
commit | 268197add8e9fbcbf15d6a042c8095828c29869f (patch) | |
tree | cdd87063e850fefceff2323945f112730e554370 /tests/system/tparams.nim | |
parent | 87fce94d65296c8aab3b8103c3b7cf48c097e1d2 (diff) | |
download | Nim-268197add8e9fbcbf15d6a042c8095828c29869f.tar.gz |
properly deprecate parseopt2 (#10452)
Diffstat (limited to 'tests/system/tparams.nim')
-rw-r--r-- | tests/system/tparams.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system/tparams.nim b/tests/system/tparams.nim index dcd620b20..b20cfce1e 100644 --- a/tests/system/tparams.nim +++ b/tests/system/tparams.nim @@ -5,7 +5,7 @@ joinable: false # not joinable because it executes itself with parameters import os import osproc -import parseopt2 +import parseopt import sequtils let argv = commandLineParams() @@ -17,6 +17,6 @@ else: let f = toSeq(getopt()) doAssert f[0].kind == cmdArgument and f[0].key == "foo bar" and f[0].val == "" doAssert f[1].kind == cmdLongOption and f[1].key == "aa" and f[1].val == "bar=a" - doAssert f[2].kind == cmdLongOption and f[2].key == "a=c" and f[2].val == "d" + doAssert f[2].kind == cmdLongOption and f[2].key == "a" and f[2].val == "c:d" doAssert f[3].kind == cmdLongOption and f[3].key == "ab" and f[3].val == "" doAssert f[4].kind == cmdShortOption and f[4].key == "c" and f[4].val == "" |