mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 02:52:37 +02:00
Add line ending autodetect to 'lines' (#589)
This commit is contained in:
@ -84,3 +84,8 @@ fn string_in_valuestream() -> TestResult {
|
||||
fn single_tick_interpolation() -> TestResult {
|
||||
run_test(r#"$'(3 + 4)'"#, "7")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn detect_newlines() -> TestResult {
|
||||
run_test("'hello\r\nworld' | lines | get 0 | str length", "5")
|
||||
}
|
||||
|
Reference in New Issue
Block a user