From 3534bd8a64a88d5684a5188d1f3b9e990ac4fa20 Mon Sep 17 00:00:00 2001 From: Michael Angerman Date: Mon, 6 Sep 2021 09:05:53 -0700 Subject: [PATCH] some build-string tests --- src/tests.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index c7ed9041b..4082b0d90 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -228,3 +228,21 @@ fn range_iteration2() -> TestResult { fn simple_value_iteration() -> TestResult { 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", + ) +}