Use byte literals in libcollections tests

This commit is contained in:
nham 2014-08-06 00:57:49 -04:00
parent f5ac41185a
commit f36ddf1d0e
2 changed files with 7 additions and 7 deletions

View file

@ -1040,7 +1040,7 @@ mod tests {
fn test_push_bytes() {
let mut s = String::from_str("ABC");
unsafe {
s.push_bytes([ 'D' as u8 ]);
s.push_bytes([b'D']);
}
assert_eq!(s.as_slice(), "ABCD");
}