22 public function testOrder( $first, $second, $msg ) {
23 $sortkey1 = $this->collation->getSortKey( $first );
24 $sortkey2 = $this->collation->getSortKey( $second );
26 $this->assertTrue( strcmp( $sortkey1, $sortkey2 ) < 0, $msg );
31 [
'X',
'Z',
'Maintain order of unrearranged' ],
32 [
'D',
'C',
'Actually resorts' ],
33 [
'D',
'B',
'resort test 2' ],
34 [
'Adobe',
'Abode',
'not first letter' ],
35 [
'💩 ',
'C',
'Test relocated to end' ],
36 [
'c',
'b',
'lowercase' ],
37 [
'x',
'z',
'lowercase original' ],
38 [
'Cz',
'Cs',
'digraphs' ],
39 [
'C50D',
'C100',
'Numbers' ]
47 $this->assertSame( $this->collation->getFirstLetter( $string ), $first );
56 [
"\u{F3000}Foo",
'D' ],
57 [
"\u{F3001}Foo",
'C' ],
58 [
"\u{F3002}Foo",
'Cs' ],
59 [
"\u{F3003}Foo",
'B' ],
60 [
"\u{F3004}Foo",
"\u{F3004}" ],