Updated tests to work with nightly 1.0.0-beta (9854143cb 2015-04-02)

This commit is contained in:
Jesse A. Tov 2015-04-05 13:08:40 -04:00
parent 6e0a8a9fff
commit b8b143166a

View File

@ -23,11 +23,11 @@ fn times_two(n: u32) -> u32 {
#[test]
fn test_basic() {
assert_eq!(&STRING[..], "hello");
assert_eq!(&**STRING, "hello");
assert_eq!(*NUMBER, 6);
assert!(HASHMAP.get(&1).is_some());
assert!(HASHMAP.get(&3).is_none());
assert_eq!(&ARRAY_BOXES[..], &[Box::new(1), Box::new(2), Box::new(3)][..]);
assert_eq!(&*ARRAY_BOXES, &[Box::new(1), Box::new(2), Box::new(3)]);
}
#[test]