diff options
author | xuri <xuri.me@gmail.com> | 2022-08-24 00:00:47 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-08-24 00:00:47 +0800 |
commit | cb8bca0e92cbec30db10c2a2863ef81fd98a6138 (patch) | |
tree | ee88b5e9d15ebace0e702ad05ae84e4f10fe33c2 /cell_test.go | |
parent | ab12307393461e7055f664d296a3a0e686eebb39 (diff) |
This closes #1290 and closes #1328
- Add new smooth field in chart format parameter, support specify if smooth line chart
- Fix decimal number format round issue with build-in number format
Diffstat (limited to 'cell_test.go')
-rw-r--r-- | cell_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cell_test.go b/cell_test.go index fb1e8ef..2a09a9d 100644 --- a/cell_test.go +++ b/cell_test.go @@ -699,6 +699,14 @@ func TestFormattedValue2(t *testing.T) { }) v = f.formattedValue(1, "43528", false) assert.Equal(t, "43528", v) + + // formatted decimal value with build-in number format ID + styleID, err := f.NewStyle(&Style{ + NumFmt: 1, + }) + assert.NoError(t, err) + v = f.formattedValue(styleID, "310.56", false) + assert.Equal(t, "311", v) } func TestSharedStringsError(t *testing.T) { |