rust-bakery / nom

Rust parser combinator framework
MIT License
9.18k stars 792 forks source link

Add missing test for to_hex #1715

Closed CXWorks closed 2 months ago

CXWorks commented 6 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:

https://github.com/rust-bakery/nom/blob/e87c7da9fa2ddb943306369f6c6d9e914256edbc/src/traits.rs#L1386-L1388

Thanks again for reviewing.