mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Simplify rawstrings in tests (#10180)
Inspired by https://rust-lang.github.io/rust-clippy/master/index.html#/needless_raw_string_hashes Ran `cargo +stable clippy --workspace --all-targets` Fixed manually as I ran into a false positive along the lines of: https://github.com/rust-lang/rust-clippy/issues/11068 Also collapse one set of single line tests. Work for #8670
This commit is contained in:
committed by
GitHub
parent
e68ae4c8d1
commit
7d6b23ee2f
@ -35,13 +35,13 @@ fn to_column() {
|
||||
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
r"
|
||||
open sample2.txt
|
||||
| lines
|
||||
| str trim
|
||||
| split column -r '\s*,\s*'
|
||||
| get column2
|
||||
"#
|
||||
"
|
||||
));
|
||||
|
||||
assert!(actual.out.contains("shipper"));
|
||||
|
Reference in New Issue
Block a user