test suite test flags
test case test flag parse()
the demo flags : demo flags • new(["-arg-bool=true", "-arg-string=str"], error reporter)
assert the demo flagsARG BOOL == true
assert the demo flagsARG STRING == "str"
the demo flags2 : demo flags • new(["-noargbool", "-arg-string:bar"], error reporter)
assert the demo flags2ARG BOOL == false
assert the demo flags2ARG STRING == "bar"
var string reported message
test case test failed parse()
assert reported message == "Unknown flag: foo"
the demo flags2 : demo flags • new(["-arg-bool", "bar"], error reporter)
assert reported message == "Non-flag parameters found--don't know what to do!"