MatMoore / MatMoore/string-inspector
Add tests for invalid byte sequences
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently we only test valid utf8 input. We should also test input that is invalid in utf8.
See https://en.wikipedia.org/wiki/UTF-8#Invalid_byte_sequences
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing tests for valid UTF-8 input in the repository and read how test cases are structured. Add coverage for the invalid UTF-8 byte sequences described in the linked reference, then run the existing test suite to confirm those cases are exercised.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100