@@ -2807,9 +2807,10 @@ mod tests {
28072807 #[test]
28082808 fn test_to_lower() {
28092809 unsafe {
2810- fail_unless!(~" " == map(~" ", |c| libc::tolower(c as c_char) as char));
2810+ fail_unless!(~" " == map(~" ",
2811+ |c| libc::tolower(c as c_char) as char));
28112812 fail_unless!(~" ymca" == map(~" YMCA ",
2812- |c| libc::tolower(c as c_char) as char));
2813+ |c| libc::tolower(c as c_char) as char));
28132814 }
28142815 }
28152816
@@ -2867,7 +2868,8 @@ mod tests {
28672868 fail_unless!(replace(~" a", a, ~" b") == ~" b");
28682869 fail_unless!(replace(~" ab", a, ~" b") == ~" bb");
28692870 let test = ~" test";
2870- fail_unless!(replace(~" test test ", test, ~" toast") == ~" toast toast ");
2871+ fail_unless!(replace(~" test test ", test, ~" toast") ==
2872+ ~" toast toast ");
28712873 fail_unless!(replace(~" test test ", test, ~" ") == ~" ");
28722874 }
28732875
@@ -2977,18 +2979,24 @@ mod tests {
29772979
29782980 #[test]
29792981 fn test_trim_left_chars() {
2980- fail_unless!(trim_left_chars(~" * * * foo * * * ", ~[]) == ~" * * * foo * * * ");
2981- fail_unless!(trim_left_chars(~" * * * foo * * * ", ~['*', ' ']) == ~" foo * * * ");
2982+ fail_unless!(trim_left_chars(~" * * * foo * * * ", ~[]) ==
2983+ ~" * * * foo * * * ");
2984+ fail_unless!(trim_left_chars(~" * * * foo * * * ", ~['*', ' ']) ==
2985+ ~" foo * * * ");
29822986 fail_unless!(trim_left_chars(~" * * * * * * ", ~['*', ' ']) == ~" ");
2983- fail_unless!(trim_left_chars(~" foo * * * ", ~['*', ' ']) == ~" foo * * * ");
2987+ fail_unless!(trim_left_chars(~" foo * * * ", ~['*', ' ']) ==
2988+ ~" foo * * * ");
29842989 }
29852990
29862991 #[test]
29872992 fn test_trim_right_chars() {
2988- fail_unless!(trim_right_chars(~" * * * foo * * * ", ~[]) == ~" * * * foo * * * ");
2989- fail_unless!(trim_right_chars(~" * * * foo * * * ", ~['*', ' ']) == ~" * * * foo");
2993+ fail_unless!(trim_right_chars(~" * * * foo * * * ", ~[]) ==
2994+ ~" * * * foo * * * ");
2995+ fail_unless!(trim_right_chars(~" * * * foo * * * ", ~['*', ' ']) ==
2996+ ~" * * * foo");
29902997 fail_unless!(trim_right_chars(~" * * * * * * ", ~['*', ' ']) == ~" ");
2991- fail_unless!(trim_right_chars(~" * * * foo", ~['*', ' ']) == ~" * * * foo");
2998+ fail_unless!(trim_right_chars(~" * * * foo", ~['*', ' ']) ==
2999+ ~" * * * foo");
29923000 }
29933001
29943002 #[test]
@@ -3321,7 +3329,8 @@ mod tests {
33213329 #[ test]
33223330 fn test_map( ) {
33233331 unsafe {
3324- fail_unless!( ~"" == map( ~"", |c| libc:: toupper( c as c_char) as char ) ) ;
3332+ fail_unless!( ~"" == map( ~"", |c|
3333+ libc:: toupper( c as c_char) as char ) ) ;
33253334 fail_unless!( ~"YMCA " == map(~" ymca",
33263335 |c| libc::toupper(c as c_char) as char));
33273336 }
0 commit comments