refactor: change column names from 'Column*' to 'column*' (#4556)

This commit is contained in:
Justin Ma
2022-02-20 08:26:47 +08:00
committed by GitHub
parent a6c565ed4e
commit aea4355d04
23 changed files with 98 additions and 98 deletions

View File

@ -6,7 +6,7 @@ fn counter_clockwise() {
r#"
echo [
[col1, col2, EXPECTED];
[---, "|||", XX1]
[---, "|||", XX2]
[---, "|||", XX3]
@ -17,14 +17,14 @@ fn counter_clockwise() {
let expected = nu!(cwd: ".", pipeline(
r#"
echo [
[ Column0, Column1, Column2, Column3];
[ column0, column1, column2, column3];
[ EXPECTED, XX1, XX2, XX3]
[ col2, "|||", "|||", "|||"]
[ col1, ---, ---, ---]
]
| where Column0 == EXPECTED
| get Column1 Column2 Column3
| where column0 == EXPECTED
| get column1 column2 column3
| str collect "-"
"#,
));
@ -33,8 +33,8 @@ fn counter_clockwise() {
cwd: ".",
format!("{} | {}", table, pipeline(r#"
rotate --ccw
| where Column0 == EXPECTED
| get Column1 Column2 Column3
| where column0 == EXPECTED
| get column1 column2 column3
| str collect "-"
"#)));
@ -47,7 +47,7 @@ fn clockwise() {
r#"
echo [
[col1, col2, EXPECTED];
[ ---, "|||", XX1]
[ ---, "|||", XX2]
[ ---, "|||", XX3]
@ -58,14 +58,14 @@ fn clockwise() {
let expected = nu!(cwd: ".", pipeline(
r#"
echo [
[ Column0, Column1, Column2, Column3];
[ column0, column1, column2, column3];
[ ---, ---, ---, col1]
[ "|||", "|||", "|||", col2]
[ XX3, XX2, XX1, EXPECTED]
]
| where Column3 == EXPECTED
| get Column0 Column1 Column2
| where column3 == EXPECTED
| get column0 column1 column2
| str collect "-"
"#,
));
@ -74,8 +74,8 @@ fn clockwise() {
cwd: ".",
format!("{} | {}", table, pipeline(r#"
rotate
| where Column3 == EXPECTED
| get Column0 Column1 Column2
| where column3 == EXPECTED
| get column0 column1 column2
| str collect "-"
"#)));