nushell/crates/nu-command/tests
Antoine Stevan 202dfdaee2
fix panic with lines on an error (#9967)
should close https://github.com/nushell/nushell/issues/9965

# Description
this PR implements the `todo!()` left in `lines`.

# User-Facing Changes
### before
```nushell
> open . | lines
thread 'main' panicked at 'not yet implemented', crates/nu-command/src/filters/lines.rs:248:35
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

### after
```nushell
> open . | lines
Error: nu:🐚:io_error

  × I/O error
  help: Is a directory (os error 21)
```

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
-  `toolkit test`
-  `toolkit test stdlib`

this PR adds the `lines_on_error` test to make sure this does not happen
again 😌

# After Submitting
2023-08-09 14:12:58 +02:00
..
commands fix panic with lines on an error (#9967) 2023-08-09 14:12:58 +02:00
format_conversions Clean up tests containing unnecessary cwd: tokens (#9692) 2023-07-17 18:43:51 +02:00
main.rs Break up interdependencies of command crates (#9429) 2023-06-14 23:12:55 +02:00