Making WordPress.org

Changeset 6210


Ignore:
Timestamp:
12/03/2017 05:28:33 PM (7 years ago)
Author:
iandunn
Message:

Events: Add tests for Cyrillic character cases.

See #3295

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php

    r6208 r6210  
    325325        ),
    326326
    327         /*
    328          * todo This is failing. Not sure why at first glance, it looks like it matches the row in the database exactly.
    329          *      It might be a similar issue to `Yaoundé`. If it is, this should still be kept as a separate test after
    330          *      that is fixed, to make sure there aren't regressions with diacritics.
    331          */
    332327        'city-with-diacritics-in-query' => array(
    333328            'input' => array(
     
    390385         *
    391386         * @todo
    392          * This is currently failling. A query from PHP shows row id 2220957 has "Yaound?" instead of
     387         * This is currently failing. A query from PHP shows row id 2220957 has "Yaound?" instead of
    393388         * "Yaoundé", but it's correct in the database itself.
    394389         */
     
    530525                'latitude'    => '55.752',
    531526                'longitude'   => '37.616',
     527                'country'     => 'RU',
     528            ),
     529        ),
     530
     531        // https://meta.trac.wordpress.org/ticket/3295
     532        'city-endonym-europe3-uppercase' => array(
     533            'input' => array(
     534                'location_name' => 'Санкт-Петербург',
     535                'locale'        => 'ru_RU',
     536                'timezone'      => 'Europe/Moscow',
     537            ),
     538            'expected' => array(
     539                'description' => 'Санкт-Петербург',
     540                'latitude'    => '59.894',
     541                'longitude'   => '30.264',
     542                'country'     => 'RU',
     543            ),
     544        ),
     545
     546        // https://meta.trac.wordpress.org/ticket/3295
     547        'city-endonym-europe3-lowercase' => array(
     548            'input' => array(
     549                'location_name' => 'санкт-петербург',
     550                'locale'        => 'ru_RU',
     551                'timezone'      => 'Europe/Moscow',
     552            ),
     553            'expected' => array(
     554                'description' => 'Санкт-Петербург',
     555                'latitude'    => '59.894',
     556                'longitude'   => '30.264',
    532557                'country'     => 'RU',
    533558            ),
Note: See TracChangeset for help on using the changeset viewer.