(t *testing.T)
| 1191 | } |
| 1192 | |
| 1193 | func TestIssue40(t *testing.T) { |
| 1194 | _, output, err := parseOutput("usage: prog --help-commands | --help", []string{"--help"}, true, "", false) |
| 1195 | if err != nil || len(output) == 0 { |
| 1196 | t.Error(err) |
| 1197 | } |
| 1198 | if v, err := Parse("usage: prog --aabb | --aa", []string{"--aa"}, true, "", false, false); reflect.DeepEqual(v, map[string]interface{}{"--aabb": false, "--aa": true}) != true { |
| 1199 | t.Error(err) |
| 1200 | } |
| 1201 | } |
| 1202 | |
| 1203 | func TestIssue34UnicodeStrings(t *testing.T) { |
| 1204 | // TODO: see if applicable |
nothing calls this directly
no test coverage detected