[wp-trac] [WordPress Trac] #55667: Tests_Basic::test_security_md() truncates the `.0` for `x.1` current version releases.
WordPress Trac
noreply at wordpress.org
Tue May 3 18:55:59 UTC 2022
#55667: Tests_Basic::test_security_md() truncates the `.0` for `x.1` current
version releases.
--------------------------------------+-----------------------------
Reporter: hellofromTonya | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Build/Test Tools | Version: 5.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by hellofromTonya):
* owner: (none) => hellofromTonya
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"53347" 53347]:
{{{
#!CommitTicketReference repository="" revision="53347"
Build/Test Tools: Ensure version number is in 'X.X' format after float
math: `Tests_Basic::test_security_md()`.
After subtracing `0.1` from a `X.1` current version, the result was a
single digit without the `.0` decimal. Using `number_format()` ensures
each current version has a decimal before appending the `.x` before the
test.
This commit also reverts [55346] which was a temporary workaround.
Follow-up to [55346], [47403].
Fixes #55667.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55667#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list