Skip to content

Commit

Permalink
Fix bin_digit test (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored Oct 21, 2023
1 parent 0c5d5b9 commit d4318f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bytes/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::character::is_alphabetic;
use crate::character::streaming::{
alpha1 as alpha, alphanumeric1 as alphanumeric, digit1 as digit, hex_digit1 as hex_digit,
multispace1 as multispace, oct_digit1 as oct_digit, bin_digit1 as bin_digit, space1 as space,
alpha1 as alpha, alphanumeric1 as alphanumeric, bin_digit1 as bin_digit, digit1 as digit,
hex_digit1 as hex_digit, multispace1 as multispace, oct_digit1 as oct_digit, space1 as space,
};
use crate::error::ErrorKind;
use crate::internal::{Err, IResult, Needed};
Expand Down Expand Up @@ -337,7 +337,7 @@ fn recognize() {
assert_eq!(rod, Ok((semicolon, &b"1234567"[..])));

fn ybd(i: &[u8]) -> IResult<&[u8], &[u8]> {
recognize(bin_digit)(i)
recognize(bin_digit).parse(i)
}
let rbd = ybd(&b"101010;"[..]);
assert_eq!(rbd, Ok((semicolon, &b"101010"[..])));
Expand Down

0 comments on commit d4318f6

Please sign in to comment.