Fix string interp/shorthand overlap (#3412)

This commit is contained in:
JT
2021-05-12 16:20:29 +12:00
committed by GitHub
parent 2bb23c57df
commit efac712f62
2 changed files with 15 additions and 3 deletions

View File

@ -137,6 +137,18 @@ fn string_interpolation_with_it_column_path() {
assert_eq!(actual.out, "sammie");
}
#[test]
fn string_interpolation_shorthand_overlap() {
let actual = nu!(
cwd: ".",
r#"
$"3 + 4 = {3 + 4}"
"#
);
assert_eq!(actual.out, "3 + 4 = 7");
}
#[test]
fn bignum_large_integer() {
let actual = nu!(