mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:05:02 +02:00
Remove old nushell/merge engine-q
This commit is contained in:
@ -9,11 +9,7 @@ use serial_test::serial;
|
||||
#[test]
|
||||
fn env_shorthand() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
FOO=bar echo $nu.env.FOO
|
||||
=======
|
||||
FOO=bar echo $env.FOO
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(actual.out, "bar");
|
||||
}
|
||||
@ -21,11 +17,7 @@ fn env_shorthand() {
|
||||
#[test]
|
||||
fn env_shorthand_with_equals() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
RUST_LOG=my_module=info $nu.env.RUST_LOG
|
||||
=======
|
||||
RUST_LOG=my_module=info $env.RUST_LOG
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(actual.out, "my_module=info");
|
||||
}
|
||||
@ -33,11 +25,7 @@ fn env_shorthand_with_equals() {
|
||||
#[test]
|
||||
fn env_shorthand_with_comma_equals() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
RUST_LOG=info,my_module=info $nu.env.RUST_LOG
|
||||
=======
|
||||
RUST_LOG=info,my_module=info $env.RUST_LOG
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(actual.out, "info,my_module=info");
|
||||
}
|
||||
@ -45,11 +33,7 @@ fn env_shorthand_with_comma_equals() {
|
||||
#[test]
|
||||
fn env_shorthand_with_comma_colons_equals() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace $nu.env.RUST_LOG
|
||||
=======
|
||||
RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace $env.RUST_LOG
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(actual.out, "info,my_module=info,lib_crate::lib_mod=trace");
|
||||
}
|
||||
@ -57,11 +41,7 @@ fn env_shorthand_with_comma_colons_equals() {
|
||||
#[test]
|
||||
fn env_shorthand_multi_second_with_comma_colons_equals() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
FOO=bar RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace $nu.env.FOO + $nu.env.RUST_LOG
|
||||
=======
|
||||
FOO=bar RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace $env.FOO + $env.RUST_LOG
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
@ -72,11 +52,7 @@ fn env_shorthand_multi_second_with_comma_colons_equals() {
|
||||
#[test]
|
||||
fn env_shorthand_multi_first_with_comma_colons_equals() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace FOO=bar $nu.env.FOO + $nu.env.RUST_LOG
|
||||
=======
|
||||
RUST_LOG=info,my_module=info,lib_crate::lib_mod=trace FOO=bar $env.FOO + $env.RUST_LOG
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
@ -87,11 +63,7 @@ fn env_shorthand_multi_first_with_comma_colons_equals() {
|
||||
#[test]
|
||||
fn env_shorthand_multi() {
|
||||
let actual = nu!(cwd: ".", r#"
|
||||
<<<<<<< HEAD
|
||||
FOO=bar BAR=baz $nu.env.FOO + $nu.env.BAR
|
||||
=======
|
||||
FOO=bar BAR=baz $env.FOO + $env.BAR
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
"#);
|
||||
assert_eq!(actual.out, "barbaz");
|
||||
}
|
||||
|
Reference in New Issue
Block a user