From fcfbc0e11a5913119b514e0ca824fc1eac545bf0 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 19 Feb 2024 15:04:49 -0600 Subject: [PATCH] test: Update for asserts being cut Fixes #478 --- src/combinator/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/combinator/tests.rs b/src/combinator/tests.rs index 7026cbb1..7946f132 100644 --- a/src/combinator/tests.rs +++ b/src/combinator/tests.rs @@ -781,7 +781,7 @@ fn separated0_empty_sep_test() { let i_err_pos = &i[3..]; assert_eq!( empty_sep(Partial::new(i)), - Err(ErrMode::Backtrack(error_position!( + Err(ErrMode::Cut(error_position!( &Partial::new(i_err_pos), ErrorKind::Assert ))) @@ -922,7 +922,7 @@ fn repeat0_empty_test() { assert_eq!( multi_empty(Partial::new(&b"abcdef"[..])), - Err(ErrMode::Backtrack(error_position!( + Err(ErrMode::Cut(error_position!( &Partial::new(&b"abcdef"[..]), ErrorKind::Assert ))) @@ -1246,7 +1246,7 @@ fn fold_repeat0_empty_test() { assert_eq!( multi_empty(Partial::new(&b"abcdef"[..])), - Err(ErrMode::Backtrack(error_position!( + Err(ErrMode::Cut(error_position!( &Partial::new(&b"abcdef"[..]), ErrorKind::Assert )))