Delete comments showing output of older nu version (#2717)

This commit is contained in:
Leonhard Kipp 2020-11-03 07:29:13 +01:00 committed by GitHub
parent 50dd56d3c4
commit 8196b031f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,14 +86,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_in_str_var_right() { fn alias_with_in_str_var_right() {
// Error from binary of main: //Failing
// /home/leo/repos/nushell/nushell(TypeDeduction)> alias -i lw [rust_newbie] {echo 1 2 3 | where "hello_world" in $rust_newbie | to json }
// /home/leo/repos/nushell/nushell(TypeDeduction)> lw [ big ]
// error: Type Error
// ┌─ shell:1:11
// │
// 1 │ lw [ big ]
// │ Expected row or table, found integer
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"
@ -132,11 +125,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_contains() { fn alias_with_contains() {
// Output of command in main //Failing
// /home/leo/repos/nushell/nushell(TypeDeduction)> echo 1 2 3 | where 4 in [1 hi 3] | to json
// [1,3]
// /home/leo/repos/nushell/nushell(TypeDeduction)> echo 1 2 3 | where 4 in [1 hi 3] | to json
// [1,3]
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"
@ -150,9 +139,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_contains_and_var_is_right_side() { fn alias_with_contains_and_var_is_right_side() {
//Output of command in main //Failing
// /home/leo/repos/nushell/nushell(TypeDeduction)> echo 1 2 3 | where 1 in [1 2 hi] | to json
// [1,2]
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"
@ -230,6 +217,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_math_var() { fn alias_with_math_var() {
//Failing
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"
@ -243,16 +231,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_math_var2() { fn alias_with_math_var2() {
// Doesn't work also not on main //Failing
// /home/leo/repos/nushell/nushell(TypeDeduction)> alias -i l [nums digits math] {echo $nums | each {= $(str from -d $digits | str to-decimal) + $math}}}
// /home/leo/repos/nushell/nushell(TypeDeduction)> l 3.45 2 1
// error: Coercion error
// ┌─ shell:1:11
// │
// 1 │ l 3.45 2 1
// │ nothing
// │
// │ decimal
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"
@ -292,21 +271,7 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn alias_with_math_arg() { fn alias_with_math_arg() {
// Doesn't also work on main //Failing
// /home/leo/repos/nushell/nushell(TypeDeduction)> alias -i lswh [math] {echo 1 2 3 | where $math | to json }
// /home/leo/repos/nushell/nushell(TypeDeduction)> lswh $it > 2
// error: Type Error
// ┌─ shell:1:13
// │
// 1 │ lswh $it > 2
// │ Expected boolean, found block
// /home/leo/repos/nushell/nushell(TypeDeduction)> lswh {$it > 2}
// error: Type Error
// ┌─ shell:1:15
// │
// 1 │ lswh {$it > 2}
// │ Expected boolean, found block
let actual = nu!( let actual = nu!(
cwd: ".", cwd: ".",
r#" r#"