Skip to content

Commit

Permalink
[fmtutil/table] Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jan 18, 2024
1 parent 9243679 commit 65c2133
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fmtutil/table/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,12 @@ func (s *TableSuite) TestNil(c *C) {
}

func (s *TableSuite) TestAuxi(c *C) {
t := &Table{Sizes: []int{1, 2, 3, 4}}
t := &Table{Sizes: []int{1, 2, 3, 4}, Width: 88}

c.Assert(getColumnsNum(t), Equals, len(t.Sizes))

t = &Table{columnSizes: []int{4, 4}}
renderRowData(t, []string{"ABCDABCDABCD", "ABCDABCDABCD"}, 2)

// setColumnsSizes(t, 3)
// c.Assert(t.columnSizes[0], Equals, 23)
// c.Assert(t.columnSizes[1], Equals, 23)
// c.Assert(t.columnSizes[2], Equals, 25)
setColumnsSizes(t, 3)
}

0 comments on commit 65c2133

Please sign in to comment.