@@ -756,36 +756,6 @@ fn test_trim_end_matches() {
756756    assert_eq ! ( "123foo1bar123" . trim_end_matches( |c:  char | c. is_numeric( ) ) ,  "123foo1bar" ) ; 
757757} 
758758
759- #[ test]  
760- fn  test_trim_left_matches ( )  { 
761-     let  v:  & [ char ]  = & [ ] ; 
762-     assert_eq ! ( " *** foo *** " . trim_left_matches( v) ,  " *** foo *** " ) ; 
763-     let  chars:  & [ char ]  = & [ '*' ,  ' ' ] ; 
764-     assert_eq ! ( " *** foo *** " . trim_left_matches( chars) ,  "foo *** " ) ; 
765-     assert_eq ! ( " ***  *** " . trim_left_matches( chars) ,  "" ) ; 
766-     assert_eq ! ( "foo *** " . trim_left_matches( chars) ,  "foo *** " ) ; 
767- 
768-     assert_eq ! ( "11foo1bar11" . trim_left_matches( '1' ) ,  "foo1bar11" ) ; 
769-     let  chars:  & [ char ]  = & [ '1' ,  '2' ] ; 
770-     assert_eq ! ( "12foo1bar12" . trim_left_matches( chars) ,  "foo1bar12" ) ; 
771-     assert_eq ! ( "123foo1bar123" . trim_left_matches( |c:  char | c. is_numeric( ) ) ,  "foo1bar123" ) ; 
772- } 
773- 
774- #[ test]  
775- fn  test_trim_right_matches ( )  { 
776-     let  v:  & [ char ]  = & [ ] ; 
777-     assert_eq ! ( " *** foo *** " . trim_right_matches( v) ,  " *** foo *** " ) ; 
778-     let  chars:  & [ char ]  = & [ '*' ,  ' ' ] ; 
779-     assert_eq ! ( " *** foo *** " . trim_right_matches( chars) ,  " *** foo" ) ; 
780-     assert_eq ! ( " ***  *** " . trim_right_matches( chars) ,  "" ) ; 
781-     assert_eq ! ( " *** foo" . trim_right_matches( chars) ,  " *** foo" ) ; 
782- 
783-     assert_eq ! ( "11foo1bar11" . trim_right_matches( '1' ) ,  "11foo1bar" ) ; 
784-     let  chars:  & [ char ]  = & [ '1' ,  '2' ] ; 
785-     assert_eq ! ( "12foo1bar12" . trim_right_matches( chars) ,  "12foo1bar" ) ; 
786-     assert_eq ! ( "123foo1bar123" . trim_right_matches( |c:  char | c. is_numeric( ) ) ,  "123foo1bar" ) ; 
787- } 
788- 
789759#[ test]  
790760fn  test_trim_matches ( )  { 
791761    let  v:  & [ char ]  = & [ ] ; 
@@ -821,26 +791,6 @@ fn test_trim_end() {
821791    assert_eq ! ( " hey" . trim_end( ) ,  " hey" ) ; 
822792} 
823793
824- #[ test]  
825- fn  test_trim_left ( )  { 
826-     assert_eq ! ( "" . trim_left( ) ,  "" ) ; 
827-     assert_eq ! ( "a" . trim_left( ) ,  "a" ) ; 
828-     assert_eq ! ( "    " . trim_left( ) ,  "" ) ; 
829-     assert_eq ! ( "     blah" . trim_left( ) ,  "blah" ) ; 
830-     assert_eq ! ( "   \u{3000}   wut" . trim_left( ) ,  "wut" ) ; 
831-     assert_eq ! ( "hey " . trim_left( ) ,  "hey " ) ; 
832- } 
833- 
834- #[ test]  
835- fn  test_trim_right ( )  { 
836-     assert_eq ! ( "" . trim_right( ) ,  "" ) ; 
837-     assert_eq ! ( "a" . trim_right( ) ,  "a" ) ; 
838-     assert_eq ! ( "    " . trim_right( ) ,  "" ) ; 
839-     assert_eq ! ( "blah     " . trim_right( ) ,  "blah" ) ; 
840-     assert_eq ! ( "wut   \u{3000}   " . trim_right( ) ,  "wut" ) ; 
841-     assert_eq ! ( " hey" . trim_right( ) ,  " hey" ) ; 
842- } 
843- 
844794#[ test]  
845795fn  test_trim ( )  { 
846796    assert_eq ! ( "" . trim( ) ,  "" ) ; 
0 commit comments