Opened 7 years ago
Closed 7 years ago
#36029 closed task (blessed) (fixed)
Unit tests for number_format_i18n()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | I18N | Keywords: | has-unit-tests |
Focuses: | Cc: |
Description
This is a follow-up to #35840 for specifically adding unit tests for number_format_i18n()
.
There's a rough patch I'll work on getting commit-ready.
Attachments (2)
Change History (6)
#3
@
7 years ago
For clarification, with 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
Note: See
TracTickets for help on using
tickets.
Only clone WP_Locale object when necessary