mirror of
https://gitee.com/openharmony/third_party_rust_lazy-static.rs
synced 2024-12-03 13:21:21 +00:00
Updated tests to work with nightly 1.0.0-beta (9854143cb 2015-04-02)
This commit is contained in:
parent
6e0a8a9fff
commit
b8b143166a
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user