Make WordPress Core

Ticket #17738: 17738.tests.3.patch

File 17738.tests.3.patch, 1.2 KB (added by SergeyBiryukov, 13 years ago)
  • wp-testcase/test_includes_formatting.php

     
    12851285
    12861286                $this->assertEquals( $output, remove_accents( $input ), 'remove_accents from ISO-8859-1 text' );
    12871287        }
     1288
     1289        public function test_remove_accents_vowels_diacritic() {
     1290                $this->knownWPBug(17738);
     1291
     1292                // Vowels with diacritic
     1293                // unmarked
     1294                $this->assertEquals( 'OoUu', remove_accents( 'ƠơƯư' ) );
     1295                // grave accent
     1296                $this->assertEquals( 'AaAaEeOoOoUuYy', remove_accents( 'ẦầẰằỀềỒồỜờỪừỲỳ' ) );
     1297                // hook
     1298                $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẢảẨẩẲẳẺẻỂểỈỉỎỏỔổỞởỦủỬửỶỷ' ) );
     1299                // tilde
     1300                $this->assertEquals( 'AaAaEeEeOoOoUuYy', remove_accents( 'ẪẫẴẵẼẽỄễỖỗỠỡỮữỸỹ' ) );
     1301                // acute accent
     1302                $this->assertEquals( 'AaAaEeOoOoUu', remove_accents( 'ẤấẮắẾếỐốỚớỨứ' ) );
     1303                // dot below
     1304                $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẠạẬậẶặẸẹỆệỊịỌọỘộỢợỤụỰựỴỵ' ) );
     1305        }
    12881306}
    12891307
    12901308?>