mirror of
https://github.com/nushell/nushell
synced 2025-01-15 22:54:16 +00:00
merge main
This commit is contained in:
commit
f91d0d6d65
1 changed files with 18 additions and 0 deletions
18
src/tests.rs
18
src/tests.rs
|
@ -236,3 +236,21 @@ fn concrete_variable_assignment() -> TestResult {
|
||||||
"100",
|
"100",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn build_string1() -> TestResult {
|
||||||
|
run_test("build-string 'nu' 'shell'", "nushell")
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn build_string2() -> TestResult {
|
||||||
|
run_test("'nu' | each {build-string $it 'shell'}", "nushell")
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn build_string3() -> TestResult {
|
||||||
|
run_test(
|
||||||
|
"build-string 'nu' 'shell' | each {build-string $it ' rocks'}",
|
||||||
|
"nushell rocks",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue