test a bit more
This commit is contained in:
parent
f79c453860
commit
3cd13cb174
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue