Skip to content

Commit

Permalink
Test for "true" and "false" with leading or trailing space.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Sep 19, 2024
1 parent ce37ecb commit a302735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/parser_test.toit
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ test-value-for-flag:
expected = {"foo": false}
cmd.run ["--foo=false"]

["on", "off", "yes", "no"].do: | value |
["on", "off", "yes", "no", " true", " false", "true ", "false "].do: | value |
expect-abort "Invalid value for boolean flag 'foo': '$value'. Valid values are: true, false.": | ui/cli.Ui |
cmd.run ["--foo=$value"] --ui=ui

Expand Down

0 comments on commit a302735

Please sign in to comment.