diff options
author | Vaibhav Nayak <vaibhav.nayak@gmail.com> | 2020-03-03 17:01:02 +0530 |
---|---|---|
committer | Vaibhav Nayak <vaibhav.nayak@gmail.com> | 2020-03-03 18:12:02 +0530 |
commit | 83eedce70de7a1ddeb3a4446f86b13bc6ff0b5ec (patch) | |
tree | 8c96d852ebe67c39e7145d5129c793e83afc4db8 /errors_test.go | |
parent | 1e3c85024d3bbc650c2f6a85fb075804af74720b (diff) |
Export ExcelDateToTime function to convert excel date to time
Signed-off-by: Vaibhav Nayak <vaibhav.nayak@gmail.com>
Diffstat (limited to 'errors_test.go')
-rw-r--r-- | errors_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/errors_test.go b/errors_test.go index 89d241c..207e80a 100644 --- a/errors_test.go +++ b/errors_test.go @@ -19,3 +19,7 @@ func TestNewInvalidCellNameError(t *testing.T) { assert.EqualError(t, newInvalidCellNameError("A"), "invalid cell name \"A\"") assert.EqualError(t, newInvalidCellNameError(""), "invalid cell name \"\"") } + +func TestNewInvalidExcelDateError(t *testing.T) { + assert.EqualError(t, newInvalidExcelDateError(-1), "invalid date value -1.000000, negative values are not supported supported") +} |