docopt.d
docopt.d copied to clipboard
Several tests fail when executing "dub test"
Here is the console output:
PS C:\Users\XXXX\Documents\projects\docopt.d> dub test
Generating test runner configuration '__test__library__' for 'library' (library).
Performing "unittest" build using dmd for x86.
docopt 0.6.1-b.6: building configuration "__test__library__"...
Linking...
Running .\__test__library__.exe
26 failed
usage: prog [options]
options:
-a Add
-r Remote
-m <msg> Message
27 failed
usage: prog [options]
options:
-a Add
-r Remote
-m <msg> Message
28 failed
usage: prog [options]
options:
-a Add
-r Remote
-m <msg> Message
33 failed
usage: prog [-a -r -m <msg>]
options:
-a Add
-r Remote
-m <msg> Message
34 failed
usage: prog [-armmsg]
options: -a Add
-r Remote
-m <msg> Message
103 failed
Naval Fate.
Usage:
prog ship new <name>...
prog ship [<name>] move <x> <y> [--speed=<kn>]
prog ship shoot <x> <y>
prog mine (set|remove) <x> <y> [--moored|--drifting]
prog -h | --help
prog --version
Options:
-h --help Show this screen.
--version Show version.
--speed=<kn> Speed in knots [default: 10].
--moored Mored (anchored) mine.
--drifting Drifting mine.
expect: {"-q":false,"-v":false,"A":"arg"}
result: {"-q":false,"A":"arg"}
133 failed
Usage: prog [options] A
Options:
-q Be quiet
-v Be verbose.
134 failed
Usage: prog [options] A
Options:
-q Be quiet
-v Be verbose.
expect: {"-q":true,"-v":false,"A":"arg"}
result: {"-q":true,"A":"arg"}
135 failed
Usage: prog [options] A
Options:
-q Be quiet
-v Be verbose.
expect: {"-a":true,"-m":null}
result: {"-a":true}
140 failed
usage: prog [options]
options:
-a Add
-m <msg> Message
expect: {"--bar":false,"--foo":true}
result: {"--foo":true}
172 failed
Usage:
prog --foo
prog --bar
NOT PART OF SECTION
expect: {"--bar":false,"--foo":true}
result: {"--foo":true}
173 failed
Usage:
prog --foo
prog --bar
NOT PART OF SECTION
expect: {"--bar":false,"--baz":true,"--egg":true,"--foo":false,"--spam":false}
result: {"--bar":false,"--baz":true,"--egg":true,"--foo":false}
174 failed
Usage: prog [options]
global options: --foo
local options: --baz
--bar
other options:
--egg
--spam
-not-an-option-
162 passed of 175 run : 92.6%
core.exception.AssertError@source\unittests.d(142): unittest failure
----------------
0x0045D2F1 in _d_unittest
0x00458961 in void unittests.__unittestL11_5() at C:\Users\XXXX\Documents\projects\docopt.d\source\unittests.d(146)
0x004596B8 in void unittests.__modtest()
0x00467E7D in int core.runtime.runModuleUnitTests().__foreachbody1(object.ModuleInfo*)
0x0046E047 in int object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*))
Program exited with code 1