1234567891011121314151617181920 |
- package xlsx
- import (
- . "gopkg.in/check.v1"
- )
- type RowSuite struct{}
- var _ = Suite(&RowSuite{})
- // Test we can add a new Cell to a Row
- func (r *RowSuite) TestAddCell(c *C) {
- var f *File
- f = NewFile()
- sheet, _ := f.AddSheet("MySheet")
- row := sheet.AddRow()
- cell := row.AddCell()
- c.Assert(cell, NotNil)
- c.Assert(len(row.Cells), Equals, 1)
- }
|