dtolnay / ryu

Fast floating point to string conversion
Apache License 2.0
606 stars 27 forks source link

Add missing test for f2s #52

Closed CXWorks closed 10 months ago

CXWorks commented 10 months ago

Hi,

Thanks for your time & patience to review this PR.

We are researchers focusing on Rust unit tests by LLM. By examine the existing code, we found a unit test can be added to improve the repo's overall unit test coverage(this project is already been well tested). The code region to cover is:

-4.6729244e16

https://github.com/dtolnay/ryu/blob/f84f806d623e1d5623b5a4154f64b45cce436e7d/src/f2s.rs#L89

-48808750.0

https://github.com/dtolnay/ryu/blob/f84f806d623e1d5623b5a4154f64b45cce436e7d/src/f2s.rs#L140-L147

-26632274.0

https://github.com/dtolnay/ryu/blob/f84f806d623e1d5623b5a4154f64b45cce436e7d/src/f2s.rs#L117-L118

Thanks again for reviewing.