1
Fork 0

libcore: Fix core test. rs=broken

This commit is contained in:
Patrick Walton 2013-01-10 22:36:54 -08:00
parent 83675895af
commit c6fe93d9b5
3 changed files with 84 additions and 76 deletions

View file

@ -2674,9 +2674,11 @@ mod tests {
#[test]
fn test_to_lower() {
assert ~"" == map(~"", |c| libc::tolower(c as c_char) as char);
assert ~"ymca" == map(~"YMCA",
|c| libc::tolower(c as c_char) as char);
unsafe {
assert ~"" == map(~"", |c| libc::tolower(c as c_char) as char);
assert ~"ymca" == map(~"YMCA",
|c| libc::tolower(c as c_char) as char);
}
}
#[test]
@ -3192,9 +3194,11 @@ mod tests {
#[test]
fn test_map() {
assert ~"" == map(~"", |c| libc::toupper(c as c_char) as char);
assert ~"YMCA" == map(~"ymca",
|c| libc::toupper(c as c_char) as char);
unsafe {
assert ~"" == map(~"", |c| libc::toupper(c as c_char) as char);
assert ~"YMCA" == map(~"ymca",
|c| libc::toupper(c as c_char) as char);
}
}
#[test]