summaryrefslogtreecommitdiff
path: root/stream_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'stream_test.go')
-rw-r--r--stream_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/stream_test.go b/stream_test.go
index f911ccc..fda44fb 100644
--- a/stream_test.go
+++ b/stream_test.go
@@ -55,9 +55,11 @@ func TestStreamWriter(t *testing.T) {
// Test set cell with style.
styleID, err := file.NewStyle(`{"font":{"color":"#777777"}}`)
assert.NoError(t, err)
- assert.NoError(t, streamWriter.SetRow("A4", []interface{}{Cell{StyleID: styleID}, Cell{Formula: "SUM(A10,B10)"}}))
+ assert.NoError(t, streamWriter.SetRow("A4", []interface{}{Cell{StyleID: styleID}, Cell{Formula: "SUM(A10,B10)"}}), RowOpts{Height: 45})
assert.NoError(t, streamWriter.SetRow("A5", []interface{}{&Cell{StyleID: styleID, Value: "cell"}, &Cell{Formula: "SUM(A10,B10)"}}))
assert.NoError(t, streamWriter.SetRow("A6", []interface{}{time.Now()}))
+ assert.NoError(t, streamWriter.SetRow("A7", nil, RowOpts{Hidden: true}))
+ assert.EqualError(t, streamWriter.SetRow("A7", nil, RowOpts{Height: MaxRowHeight + 1}), ErrMaxRowHeight.Error())
for rowID := 10; rowID <= 51200; rowID++ {
row := make([]interface{}, 50)