Fixing the one failing Multibyte test.

This commit is contained in:
mark_story 2011-09-04 01:55:26 +01:00
parent dbf801b9d4
commit 8c8dc6cebb
2 changed files with 4 additions and 2 deletions

View file

@ -46,3 +46,5 @@ $config['0500_052f'][] = array('upper' => 1288, 'status' => 'C', 'lower' => arra
$config['0500_052f'][] = array('upper' => 1290, 'status' => 'C', 'lower' => array(1291)); /* CYRILLIC CAPITAL LETTER KOMI NJE */ $config['0500_052f'][] = array('upper' => 1290, 'status' => 'C', 'lower' => array(1291)); /* CYRILLIC CAPITAL LETTER KOMI NJE */
$config['0500_052f'][] = array('upper' => 1292, 'status' => 'C', 'lower' => array(1293)); /* CYRILLIC CAPITAL LETTER KOMI SJE */ $config['0500_052f'][] = array('upper' => 1292, 'status' => 'C', 'lower' => array(1293)); /* CYRILLIC CAPITAL LETTER KOMI SJE */
$config['0500_052f'][] = array('upper' => 1294, 'status' => 'C', 'lower' => array(1295)); /* CYRILLIC CAPITAL LETTER KOMI TJE */ $config['0500_052f'][] = array('upper' => 1294, 'status' => 'C', 'lower' => array(1295)); /* CYRILLIC CAPITAL LETTER KOMI TJE */
$config['0500_052f'][] = array('upper' => 1296, 'status' => 'C', 'lower' => array(1297)); /* CYRILLIC CAPITAL LETTER ZE */
$config['0500_052f'][] = array('upper' => 1298, 'status' => 'C', 'lower' => array(1299)); /* CYRILLIC CAPITAL LETTER El with hook */

View file

@ -4515,7 +4515,7 @@ class MultibyteTest extends CakeTestCase {
$string = 'državni'; $string = 'državni';
$find = 'dž'; $find = 'dž';
$result = mb_strripos($string, $find); $result = mb_strripos($string, $find);
$this->assertFalse($result); $this->assertEquals(0, $result);
} }
/** /**
@ -7124,7 +7124,7 @@ mb_strtolower does not work for these strings.
$string = 'ԀԂԄԆԈԊԌԎԐԒ'; $string = 'ԀԂԄԆԈԊԌԎԐԒ';
$result = Multibyte::strtolower($string); $result = Multibyte::strtolower($string);
$expected = 'ԁԃԅԇԉԋԍԏԐԒ'; $expected = 'ԁԃԅԇԉԋԍԏԑԓ';
$this->assertEqual($expected, $result); $this->assertEqual($expected, $result);
$string = 'ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖև'; $string = 'ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՀՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՐՑՒՓՔՕՖև';