You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was suprised when using is_not that it errored when the resulting slice is empty, despite the fact that it finds the terminating character. I would think that it should only 'care' about finding the terminating character (similarly to take_till), and that it shouldn't enforce anything regarding the output. I assumed the following test case would hold. Is this the intended behaviour?
Prerequisites
Here are a few things you should provide to help me understand the issue:
Rust version : rustc 1.78.0 (9b00956e5 2024-04-29)
I was suprised when using
is_not
that it errored when the resulting slice is empty, despite the fact that it finds the terminating character. I would think that it should only 'care' about finding the terminating character (similarly totake_till
), and that it shouldn't enforce anything regarding the output. I assumed the following test case would hold. Is this the intended behaviour?Prerequisites
Here are a few things you should provide to help me understand the issue:
rustc 1.78.0 (9b00956e5 2024-04-29)
7.1.3
Test case
The text was updated successfully, but these errors were encountered: