test: port comprehensive test cases from just-bash#49
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Significantly expand test coverage inspired by Vercel's just-bash project: - AWK: 89 tests (was 19) - operators, loops, functions, printf formats - SED: 65 tests (was 17) - addresses, ranges, regex, hold space - JQ: 92 tests (was 21) - filters, functions, operators, string ops - GREP: 55 tests (was 15) - flags, context, regex patterns Also expand bash builtin tests: - echo: 26 tests (escape sequences, flags, quoting) - sort/uniq: 31 tests (numeric, reverse, field sorting) - cut/tr: 35 tests (character/field modes, classes) - wc: 22 tests (all counting modes) - date: 31 tests (format specifiers) Total spec tests increased from ~281 to 510+ Active CI tests: 301 (168 pass, 133 skip for unimplemented features) https://claude.ai/code/session_01GEyr3K2pKHhpEPhkReEgS9
194a20b to
3f83d3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Significantly expand test coverage inspired by Vercel's just-bash project:
Also expand bash builtin tests:
Test Coverage Summary
New tests marked with
### skip:document unimplemented features and serve as a roadmap for future work.Test plan
cargo test --features networkpassescargo test --test spec_testspasses (all 4 categories: AWK, SED, JQ, GREP)cargo fmt --checkpassescargo clippypasses