mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Add support for escape characters, make nuon a JSON superset (#4706)
* WIP * Finish adding escape support in strings * Try to fix windows
This commit is contained in:
@ -329,3 +329,13 @@ fn block_arity_check2() -> TestResult {
|
||||
fn block_arity_check3() -> TestResult {
|
||||
fail_test(r#"ls | each { |x, y| 1}"#, "expected 1 block parameter")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn string_escape() -> TestResult {
|
||||
run_test(r#""\u015B""#, "ś")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn string_escape_interpolation() -> TestResult {
|
||||
run_test(r#"$"\u015B(char hamburger)abc""#, "ś≡abc")
|
||||
}
|
||||
|
Reference in New Issue
Block a user