Skip to content

Commit

Permalink
Remove a FIXME in core/hash tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Jan 23, 2017
1 parent 7821a9b commit 91a478e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libcoretest/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 91a478e

Please sign in to comment.