diff options
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) { |