Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Apr 1, 2024
1 parent 0f8e3c0 commit 72d2aff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,9 @@ fn test_number_int_try_from_bytes() {
let e = NumberInt::try_from(b"x23".as_ref()).unwrap_err();
assert_eq!(e.to_string(), "invalid number at index 0");

let e = NumberInt::try_from(b"".as_ref()).unwrap_err();
assert_eq!(e.to_string(), "invalid number at index 0");

let e = NumberInt::try_from(b"2x3".as_ref()).unwrap_err();
assert_eq!(e.to_string(), "invalid number at index 1");

Expand Down

0 comments on commit 72d2aff

Please sign in to comment.