Skip to content

Commit

Permalink
Fix missing read conversions in unittests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 8, 2024
1 parent 4f2186d commit 65cd377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lexical-util/tests/iterator_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn digits_iterator_test() {
assert_eq!(iter.as_ptr(), digits.as_ptr());
assert_eq!(iter.is_consumed(), false);
assert_eq!(iter.is_done(), false);
assert_eq!(u32::from_le(iter.read::<u32>().unwrap()), 0x34333231);
assert_eq!(u32::from_le(iter.read_u32().unwrap()), 0x34333231);
assert_eq!(iter.length(), 5);
assert_eq!(iter.cursor(), 0);
assert_eq!(iter.current_count(), 0);
Expand All @@ -39,7 +39,7 @@ fn digits_iterator_test() {

let mut byte = digits.bytes::<{ STANDARD }>();
let mut iter = byte.integer_iter();
assert_eq!(iter.read::<u64>(), None);
assert_eq!(iter.read_u64(), None);
assert_eq!(iter.nth(4).unwrap(), &b'5');
assert_eq!(iter.as_slice(), &digits[digits.len()..]);
assert_eq!(iter.as_ptr(), digits[digits.len()..].as_ptr());
Expand Down

0 comments on commit 65cd377

Please sign in to comment.