libcore: Fix core test. rs=broken
This commit is contained in:
parent
83675895af
commit
c6fe93d9b5
3 changed files with 84 additions and 76 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue