Finish updating to rust HEAD

This commit is contained in:
Erick Tryzelaar
2015-04-02 19:13:25 -07:00
parent b30965ede4
commit d0b49d9b89
4 changed files with 94 additions and 64 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
#![feature(convert, custom_derive, plugin, test)]
#![feature(custom_derive, plugin, test)]
#![plugin(serde_macros)]
extern crate test;
@@ -192,10 +192,12 @@ fn test_byte_buf_ser_bytes() {
#[test]
fn test_byte_buf_de_json() {
let bytes = ByteBuf::new();
assert_eq!(json::from_str("[]").unwrap(), bytes);
let v: ByteBuf = json::from_str("[]").unwrap();
assert_eq!(v, bytes);
let bytes = ByteBuf::from(vec![1, 2, 3]);
assert_eq!(json::from_str("[1, 2, 3]").unwrap(), bytes);
let v: ByteBuf = json::from_str("[1, 2, 3]").unwrap();
assert_eq!(v, bytes);
}
#[test]