Skip to content

Commit

Permalink
Use single proptest macro invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Sep 28, 2024
1 parent b8efe22 commit e759ff9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,16 +585,12 @@ mod tests {
{
Value::validate(&s).unwrap();
}
}

proptest! {
#[test]
fn value_validation_any_non_extended_ascii_is_err(s in r"[^\x00-\xFF]+") {
matches!(Value::validate(&s).unwrap_err(), InvalidValueError::NonExtendedAscii);
}
}

proptest! {
#[test]
fn value_validation_any_ascii_control_is_err(s in r"[\x00-\x1F\x7F]+") {
matches!(Value::validate(&s).unwrap_err(), InvalidValueError::ContainsControlChar);
Expand Down

0 comments on commit e759ff9

Please sign in to comment.