WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/17/2014 08:18:38 PM (7 years ago)
Author:
wonderboymusic
Message:

Fix abbreviations mixed with quotes, example: '99% of people'.
Add/alter unit tests.

Props miqrogroove.
Fixes #26850.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPTexturize.php

    r28764 r28765  
    314314            ),
    315315            array(
    316                 "according to our source, '33% of all students scored less than 50' on the test.", // Apostrophes and primes have priority over quotes
    317                 "according to our source, ’33% of all students scored less than 50′ on the test.",
     316                "according to our source, '33 students scored less than 50' on the test.", // Apostrophes and primes have priority over quotes
     317                "according to our source, ’33 students scored less than 50′ on the test.",
    318318            ),
    319319        );
     
    10611061            ),
    10621062            array(
    1063                 "word '99's word", // Is this correct?
    1064                 "word ‘99’s word",
     1063                "word '99's word",
     1064                "word ’99’s word",
    10651065            ),
    10661066            array(
    10671067                "word '99'samsonite",
    1068                 "word ‘99’samsonite",
     1068                "word ’99’samsonite",
    10691069            ),
    10701070        );
     
    13401340                "word '999 word", // Does not match the apos pattern, should be opening quote.
    13411341                "word ‘999 word",
     1342            ),
     1343            array(
     1344                "word '99% word",
     1345                "word ‘99% word",
    13421346            ),
    13431347            array(
Note: See TracChangeset for help on using the changeset viewer.