diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2017-01-22 22:35:27 -0500 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2017-01-22 22:35:33 -0500 |
| commit | 91a478ec3451f5e45f099218efb05a77bd632d86 (patch) | |
| tree | f39bd466cf4303cb7d68650cd73a121b572c7615 | |
| parent | 7821a9b995b34d6b2ab460e045797e6d2662e5bb (diff) | |
| download | rust-91a478ec3451f5e45f099218efb05a77bd632d86.tar.gz rust-91a478ec3451f5e45f099218efb05a77bd632d86.zip | |
Remove a FIXME in core/hash tests
| -rw-r--r-- | src/libcoretest/hash/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcoretest/hash/mod.rs b/src/libcoretest/hash/mod.rs index 4ea42644ecd..0d124338133 100644 --- a/src/libcoretest/hash/mod.rs +++ b/src/libcoretest/hash/mod.rs @@ -62,9 +62,8 @@ fn test_writer_hasher() { let s: &str = "a"; assert_eq!(hash(& s), 97 + 0xFF); - // FIXME (#18283) Enable test - //let s: Box<str> = box "a"; - //assert_eq!(hasher.hash(& s), 97 + 0xFF); + let s: Box<str> = String::from("a").into_boxed_str(); + assert_eq!(hash(& s), 97 + 0xFF); let cs: &[u8] = &[1, 2, 3]; assert_eq!(hash(& cs), 9); // FIXME (#22405): Replace `Box::new` with `box` here when/if possible. |
