3 months of waiting...
Walter Bright
newshound2 at digitalmars.com
Sat Feb 8 19:55:15 UTC 2020
On 2/8/2020 8:29 AM, berni44 wrote:
> On Saturday, 8 February 2020 at 01:52:25 UTC, Walter Bright wrote:
>> Another way is to construct a tester that randomly generates bit patterns,
>> then formats the result with both sprintf and the new implementation, and they
>> must match exactly. Then it's a matter of how many of these test cases are run.
>
> That's what I did - see [1]. H. S. Teoh suggested above to put them into
> std/internals to preserve them and have a possibility to let others run the
> tests too. I'll have to see. Havn't peeked into std/internals yet...
>
> [1] https://github.com/berni44/printFloat
Good. It needs to be part of the D test suite.
More information about the Digitalmars-d
mailing list