Skip to content

Commit

Permalink
Test parsing negative numbers as conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Jan 4, 2024
1 parent 79f4e25 commit be07548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yash-env/src/trap/cond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ fn condition_from_str() {

assert_eq!("XXXXX".parse::<Condition>(), Err(ParseConditionError));
assert_eq!("999999999".parse::<Condition>(), Err(ParseConditionError));
assert_eq!("-123".parse::<Condition>(), Err(ParseConditionError));
}

0 comments on commit be07548

Please sign in to comment.