summaryrefslogtreecommitdiffstats
path: root/vendor/flate2/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/flate2/tests')
-rw-r--r--vendor/flate2/tests/early-flush.rs2
-rw-r--r--vendor/flate2/tests/empty-read.rs2
-rw-r--r--vendor/flate2/tests/gunzip.rs4
-rw-r--r--vendor/flate2/tests/zero-write.rs2
4 files changed, 1 insertions, 9 deletions
diff --git a/vendor/flate2/tests/early-flush.rs b/vendor/flate2/tests/early-flush.rs
index e717adaa5..b43f47450 100644
--- a/vendor/flate2/tests/early-flush.rs
+++ b/vendor/flate2/tests/early-flush.rs
@@ -1,5 +1,3 @@
-extern crate flate2;
-
use std::io::{Read, Write};
use flate2::read::GzDecoder;
diff --git a/vendor/flate2/tests/empty-read.rs b/vendor/flate2/tests/empty-read.rs
index 755123833..3724c23d7 100644
--- a/vendor/flate2/tests/empty-read.rs
+++ b/vendor/flate2/tests/empty-read.rs
@@ -1,5 +1,3 @@
-extern crate flate2;
-
use std::io::{Read, Write};
#[test]
diff --git a/vendor/flate2/tests/gunzip.rs b/vendor/flate2/tests/gunzip.rs
index c3820328a..f7d413213 100644
--- a/vendor/flate2/tests/gunzip.rs
+++ b/vendor/flate2/tests/gunzip.rs
@@ -1,5 +1,3 @@
-extern crate flate2;
-
use flate2::read::GzDecoder;
use flate2::read::MultiGzDecoder;
use std::fs::File;
@@ -16,7 +14,7 @@ fn test_extract_success() {
.unwrap()
.read_to_end(&mut expected)
.unwrap();
- assert!(content == expected);
+ assert_eq!(content, expected);
}
//
// test partial extraction of a multistream gzipped file
diff --git a/vendor/flate2/tests/zero-write.rs b/vendor/flate2/tests/zero-write.rs
index f0db86cb8..22be8eec2 100644
--- a/vendor/flate2/tests/zero-write.rs
+++ b/vendor/flate2/tests/zero-write.rs
@@ -1,5 +1,3 @@
-extern crate flate2;
-
#[test]
fn zero_write_is_error() {
let mut buf = [0u8];