From 731025764d35d17dab798d2bb8f19149f3b062b5 Mon Sep 17 00:00:00 2001 From: Nathan Fiedler Date: Sat, 25 Jun 2016 15:39:36 -0700 Subject: [PATCH] Fix the tests after the API change --- tests/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib.rs b/tests/lib.rs index 8f5dca5..8b0acfd 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -76,7 +76,7 @@ fn test_read_from_blob() { Err(why) => panic!("couldn't read file: {}", Error::description(&why)), Ok(_) => () }; - assert!(wand.read_image_blob(data).is_ok()); + assert!(wand.read_image_blob(&data).is_ok()); assert_eq!(512, wand.get_image_width()); assert_eq!(384, wand.get_image_height()); } @@ -98,7 +98,7 @@ fn test_write_to_blob() { assert_eq!(104060, blob.len()); } // should be able to read it back again - assert!(wand.read_image_blob(blob).is_ok()); + assert!(wand.read_image_blob(&blob).is_ok()); assert_eq!(512, wand.get_image_width()); assert_eq!(384, wand.get_image_height()); }