Skip to content

Int(with_signs=False) does not accept -42, but +42 #170

@phorward

Description

@phorward

without_signs=False should mean without_signs=False, but is is negative=False.
An entirely different parameterization should also be considered.

$ cargo run -- -e "Expect<Int(with_signs=false)>" -- "-123"
Line 1, column 1: Expecting <parselet __AnonymousParselet__>, but got "-"
$ cargo run -- -e "Expect<Int(with_signs=false)>" -- "+123"
123

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions