diff options
author | Alex Whitney <alex@itshalfempty.com> | 2018-07-24 16:12:26 -0400 |
---|---|---|
committer | Alex Whitney <alex@itshalfempty.com> | 2018-07-25 10:47:14 -0400 |
commit | db7a605cf8384f86dd3d3f766050a201b5f10eec (patch) | |
tree | d5b0077081fd5c020354dab6f62d93acfb3d042b /styles_test.go | |
parent | a885bb0fb92dd7a55f27f0fd57d174121db79b0f (diff) |
Use min/mid/max value for 2 and 3 color scale conditional formatting
Diffstat (limited to 'styles_test.go')
-rw-r--r-- | styles_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/styles_test.go b/styles_test.go index 7a7e228..baa66f0 100644 --- a/styles_test.go +++ b/styles_test.go @@ -32,13 +32,13 @@ func TestSetConditionalFormat(t *testing.T) { ColorScale: &xlsxColorScale{ Cfvo: []*xlsxCfvo{{ Type: "num", - Val: -10, + Val: "-10", }, { Type: "num", - Val: 0, + Val: "0", }, { Type: "num", - Val: 10, + Val: "10", }}, Color: []*xlsxColor{{ RGB: "FFFF0000", @@ -67,13 +67,13 @@ func TestSetConditionalFormat(t *testing.T) { ColorScale: &xlsxColorScale{ Cfvo: []*xlsxCfvo{{ Type: "num", - Val: 0, + Val: "0", }, { Type: "num", - Val: 50, + Val: "50", }, { Type: "num", - Val: 0, + Val: "0", }}, Color: []*xlsxColor{{ RGB: "FFFF0000", @@ -100,10 +100,10 @@ func TestSetConditionalFormat(t *testing.T) { ColorScale: &xlsxColorScale{ Cfvo: []*xlsxCfvo{{ Type: "num", - Val: 0, + Val: "0", }, { Type: "num", - Val: 0, + Val: "0", }}, Color: []*xlsxColor{{ RGB: "FFFF0000", |