MatMoore / MatMoore/string-inspector

Add tests for invalid byte sequences

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.