Remove build-string command (#7144)

This commit is contained in:
Reilly Wood
2022-11-16 09:37:52 -08:00
committed by GitHub
parent 02ad491dea
commit 7098e56ccf
5 changed files with 2 additions and 126 deletions

View File

@ -1,39 +1,5 @@
use crate::tests::{fail_test, run_test, TestResult};
#[test]
fn build_string1() -> TestResult {
run_test("build-string 'nu' 'shell'", "nushell")
}
#[test]
fn build_string2() -> TestResult {
run_test("'nu' | each { |it| build-string $it 'shell'}", "nushell")
}
#[test]
fn build_string3() -> TestResult {
run_test(
"build-string 'nu' 'shell' | each { |it| build-string $it ' rocks'}",
"nushell rocks",
)
}
#[test]
fn build_string4() -> TestResult {
run_test(
"['sam','rick','pete'] | each { |it| build-string $it ' is studying'} | get 2",
"pete is studying",
)
}
#[test]
fn build_string5() -> TestResult {
run_test(
"['sam','rick','pete'] | each { |x| build-string $x ' is studying'} | get 1",
"rick is studying",
)
}
#[test]
fn cjk_in_substrings() -> TestResult {
run_test(