mirror of
https://github.com/nushell/nushell.git
synced 2025-01-28 17:18:59 +01:00
merge main
This commit is contained in:
commit
f91d0d6d65
18
src/tests.rs
18
src/tests.rs
@ -236,3 +236,21 @@ fn concrete_variable_assignment() -> TestResult {
|
||||
"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 New Issue
Block a user