We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c80cc commit a599e92Copy full SHA for a599e92
src/reader.rs
@@ -390,7 +390,9 @@ mod tests {
390
fn test_try_read() {
391
let f = io::Cursor::new("lorem");
392
let mut r = NBReader::new(f, None);
393
- r.read_until(&ReadUntil::NBytes(4)).expect("4 bytes");
+ let bytes = r.read_until(&ReadUntil::NBytes(4)).unwrap();
394
+ assert!(bytes.0.is_empty());
395
+ assert_eq!(bytes.1, "lore");
396
assert_eq!(Some('m'), r.try_read());
397
assert_eq!(None, r.try_read());
398
0 commit comments