remove some tests
This commit is contained in:
parent
cca5e85b7f
commit
f46a5cd9e1
|
@ -58,22 +58,6 @@ fn each_while_uses_enumerate_index() {
|
||||||
assert_eq!(actual.out, "[0, 1, 2, 3]");
|
assert_eq!(actual.out, "[0, 1, 2, 3]");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn each_element_continue_command() {
|
|
||||||
let actual =
|
|
||||||
nu!("[1,2,3,4,6,7] | each { |x| if ($x mod 2 == 0) {continue} else { $x }} | to nuon");
|
|
||||||
|
|
||||||
assert_eq!(actual.out, "[1, 3, 7]");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn each_element_break_command() {
|
|
||||||
let actual =
|
|
||||||
nu!("[1,2,5,4,6,7] | each { |x| if ($x mod 3 == 0) {break} else { $x }} | to nuon");
|
|
||||||
|
|
||||||
assert_eq!(actual.out, "[1, 2, 5, 4]");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn errors_in_nested_each_show() {
|
fn errors_in_nested_each_show() {
|
||||||
let actual = nu!("[[1,2]] | each {|x| $x | each {|y| error make {msg: \"oh noes\"} } }");
|
let actual = nu!("[[1,2]] | each {|x| $x | each {|y| error make {msg: \"oh noes\"} } }");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user