From 3cd13cb1746193f077766985273b144beba01480 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 19 Feb 2020 11:14:30 +0100 Subject: [PATCH] test a bit more --- tests/run-pass/fs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run-pass/fs.rs b/tests/run-pass/fs.rs index ebbd0b0c57ca..453432f64f10 100644 --- a/tests/run-pass/fs.rs +++ b/tests/run-pass/fs.rs @@ -80,6 +80,7 @@ fn test_seek() { let mut file = File::open(&path).unwrap(); let mut contents = Vec::new(); file.read_to_end(&mut contents).unwrap(); + assert_eq!(bytes, contents.as_slice()); // Test that seeking to the beginning and reading until EOF gets the text again. file.seek(SeekFrom::Start(0)).unwrap(); let mut contents = Vec::new();