Tests now pass on Mac OS X, Ubuntu Linux, and FreeBSD

This commit is contained in:
Nathan Fiedler
2016-02-10 17:41:17 -08:00
parent 708d4b444b
commit f115a7a774

View File

@ -91,11 +91,11 @@ fn test_write_to_blob() {
assert_eq!(512, wand.get_image_width());
assert_eq!(384, wand.get_image_height());
let blob = wand.write_image_blob("jpeg").unwrap();
if cfg!(target_os = "freebsd") {
if cfg!(target_os = "macos") {
// yeah, don't know why...
assert_eq!(104060, blob.len());
} else {
assert_eq!(104061, blob.len());
} else {
assert_eq!(104060, blob.len());
}
// should be able to read it back again
assert!(wand.read_image_blob(blob).is_ok());