Test and refactor of array methods
Changes include: - e2e tests for array methods. - Make `run_examples.sh` tell you the difference on fail. - Unit tests for the `ArrayMethod` struct. - Small refactor to reduce code duplication. - Small refactor on `graphemes` to avoid cloning the structure.
Showing
- examples/array_methods.ion 5 additions, 0 deletionsexamples/array_methods.ion
- examples/array_methods.out 5 additions, 0 deletionsexamples/array_methods.out
- examples/run_examples.sh 4 additions, 1 deletionexamples/run_examples.sh
- src/parser/shell_expand/words/methods/arrays.rs 361 additions, 203 deletionssrc/parser/shell_expand/words/methods/arrays.rs
Loading
Please register or sign in to comment