Skip to content

Commit b8b1431

Browse files
committed
Updated tests to work with nightly 1.0.0-beta (9854143cb 2015-04-02)
1 parent 6e0a8a9 commit b8b1431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ fn times_two(n: u32) -> u32 {
2323

2424
#[test]
2525
fn test_basic() {
26-
assert_eq!(&STRING[..], "hello");
26+
assert_eq!(&**STRING, "hello");
2727
assert_eq!(*NUMBER, 6);
2828
assert!(HASHMAP.get(&1).is_some());
2929
assert!(HASHMAP.get(&3).is_none());
30-
assert_eq!(&ARRAY_BOXES[..], &[Box::new(1), Box::new(2), Box::new(3)][..]);
30+
assert_eq!(&*ARRAY_BOXES, &[Box::new(1), Box::new(2), Box::new(3)]);
3131
}
3232

3333
#[test]

0 commit comments

Comments
 (0)