mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Remove build-string command (#7144)
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user