Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apstndb committed Nov 6, 2024
1 parent fcec22c commit aa47e9a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,34 @@ Empty set ()
| 3 | 4 |
+--------+--------+
Empty set ()
`, "\n"),
},
{
desc: "DisplayModeTable: also respect column value",
displayMode: DisplayModeTable,
screenWidth: 25,
verbose: true,
result: &Result{
ColumnTypes: []*sppb.StructType_Field{
{Name: "English", Type: &sppb.Type{Code: sppb.TypeCode_STRING}},
{Name: "Japanese", Type: &sppb.Type{Code: sppb.TypeCode_STRING}},
},
Rows: []Row{
{[]string{"Hello World", "こんにちは"}},
{[]string{"Bye", "さようなら"}},
},
IsMutation: false,
},
want: strings.TrimPrefix(`
+---------+------------+
| English | Japanese |
| STRING | STRING |
+---------+------------+
| Hello W | こんにちは |
| orld | |
| Bye | さようなら |
+---------+------------+
Empty set ()
`, "\n"),
},
}
Expand Down

0 comments on commit aa47e9a

Please sign in to comment.