mirror of
https://github.com/nushell/nushell.git
synced 2024-12-17 12:41:34 +01:00
some build-string tests
This commit is contained in:
parent
cdbd333c9b
commit
3534bd8a64
18
src/tests.rs
18
src/tests.rs
@ -228,3 +228,21 @@ fn range_iteration2() -> TestResult {
|
|||||||
fn simple_value_iteration() -> TestResult {
|
fn simple_value_iteration() -> TestResult {
|
||||||
run_test("4 | each { $it + 10 }", "14")
|
run_test("4 | each { $it + 10 }", "14")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[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