Skip to content

test validate-2.2 fails #12

Description

@teclabat
==== validate-2.2 validator throws error FAILED
==== Contents of test case:
 #<<<
        list [catch {
                parse_args::parse_args {-rating ""} {
                        -rating {-validate {tcl::mathop::+ 1}}
                }
        } r o] $r [dict get $o -errorcode]

---- Result was:
1 {Validation failed for "-rating": can't use empty string as operand of "+"} {PARSE_ARGS VALIDATION
 -rating}
---- Result should have been (exact matching):
1 {Validation failed for "-rating": can't use empty string "" as operand of "+"} {PARSE_ARGS VALIDAT
ION -rating}
==== validate-2.2 FAILED

Environment: Windows, msys2, mingw64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions