From f115a7a77423af9fa0d2ca87035c55ed2f6efbaa Mon Sep 17 00:00:00 2001 From: Nathan Fiedler Date: Wed, 10 Feb 2016 17:41:17 -0800 Subject: [PATCH] Tests now pass on Mac OS X, Ubuntu Linux, and FreeBSD --- tests/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/lib.rs b/tests/lib.rs index bbd1101..18f614f 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -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());