Tests now pass on Mac OS X, Ubuntu Linux, and FreeBSD
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user