about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2017-01-22 22:35:27 -0500
committerWesley Wiser <wwiser@gmail.com>2017-01-22 22:35:33 -0500
commit91a478ec3451f5e45f099218efb05a77bd632d86 (patch)
treef39bd466cf4303cb7d68650cd73a121b572c7615
parent7821a9b995b34d6b2ab460e045797e6d2662e5bb (diff)
downloadrust-91a478ec3451f5e45f099218efb05a77bd632d86.tar.gz
rust-91a478ec3451f5e45f099218efb05a77bd632d86.zip
Remove a FIXME in core/hash tests
-rw-r--r--src/libcoretest/hash/mod.rs5
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.