Skip to content

Commit 66497d5

Browse files
Rollup merge of #39251 - wesleywiser:fixme_1, r=BurntSushi
Remove a FIXME in core/hash tests Removes a FIXME
2 parents fd8988e + 91a478e commit 66497d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcoretest/hash/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ fn test_writer_hasher() {
6262

6363
let s: &str = "a";
6464
assert_eq!(hash(& s), 97 + 0xFF);
65-
// FIXME (#18283) Enable test
66-
//let s: Box<str> = box "a";
67-
//assert_eq!(hasher.hash(& s), 97 + 0xFF);
65+
let s: Box<str> = String::from("a").into_boxed_str();
66+
assert_eq!(hash(& s), 97 + 0xFF);
6867
let cs: &[u8] = &[1, 2, 3];
6968
assert_eq!(hash(& cs), 9);
7069
// FIXME (#22405): Replace `Box::new` with `box` here when/if possible.

0 commit comments

Comments
 (0)