[wp-trac] [WordPress Trac] #36029: Unit tests for number_format_i18n()

WordPress Trac noreply at wordpress.org
Tue Mar 1 20:59:22 UTC 2016


#36029: Unit tests for number_format_i18n()
----------------------------+-------------------------
 Reporter:  swissspidy      |       Owner:  swissspidy
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  4.5
Component:  I18N            |     Version:  2.3
 Severity:  normal          |  Resolution:
 Keywords:  has-unit-tests  |     Focuses:
----------------------------+-------------------------

Comment (by swissspidy):

 For clarification, with [attachment:36029.2.diff] I took the tests from
 #35840 and:

 * Fixed the inline docs and naming of the functions
 * Removed all tests and assertions for using non-numerical values
 * Reduced the number of duplicate assertions
 * Properly clean up `$wp_locale` after usage (and before assertion is
 run!)
 * Added a new test for when a negative precision is used

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36029#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list