diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-07-12 12:59:22 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-07-12 19:17:41 +0200 |
commit | 25277bcb727994072239c9c2549c271fdd62150e (patch) | |
tree | 9b3c8e8d852e7501eb7ac125fff23b29a2d61146 /dbaccess/qa | |
parent | 1ce1c26dd98e6477139e08d1ebe89fa950ff5fb0 (diff) |
tdf#126268: Add support for negative decimal
basically reintroduce the code deleted in
2e26ef34bf1a2e5d1293e45cf3b1415d9514b056
and check at the right place the sign values
Change-Id: Idf613a3a087b428d1f85abe9b43342fb67538a63
Reviewed-on: https://gerrit.libreoffice.org/75488
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/unit/data/tdf126268.odb | bin | 4877 -> 5015 bytes | |||
-rw-r--r-- | dbaccess/qa/unit/tdf126268.cxx | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/qa/unit/data/tdf126268.odb b/dbaccess/qa/unit/data/tdf126268.odb Binary files differindex ffd00c140791..434a4238ba3b 100644 --- a/dbaccess/qa/unit/data/tdf126268.odb +++ b/dbaccess/qa/unit/data/tdf126268.odb diff --git a/dbaccess/qa/unit/tdf126268.cxx b/dbaccess/qa/unit/tdf126268.cxx index 967d5e671ff0..ffbe6361a231 100644 --- a/dbaccess/qa/unit/tdf126268.cxx +++ b/dbaccess/qa/unit/tdf126268.cxx @@ -49,8 +49,10 @@ struct expect_t OUString number; }; -static const expect_t expect[] - = { { 1, "0.00" }, { 2, "25.00" }, { 3, "26.00" }, { 4, "30.4" }, { 5, "45.8" } }; +static const expect_t expect[] = { + { 1, "0.00" }, { 2, "25.00" }, { 3, "26.00" }, { 4, "30.4" }, { 5, "45.8" }, + { 6, "-25.00" }, { 7, "-26.00" }, { 8, "-30.4" }, { 9, "-45.8" }, +}; void Tdf126268Test::testNumbers() { |