[Libreoffice-commits] core.git: basic/qa sc/qa

Laurent Balland-Poirier laurent.balland-poirier at laposte.net
Wed Feb 17 08:53:59 UTC 2016


 basic/qa/vba_tests/format.vb                |    4 ++++
 sc/qa/unit/data/contentCSV/numberFormat.csv |    2 ++
 sc/qa/unit/data/ods/formats.ods             |binary
 3 files changed, 6 insertions(+)

New commits:
commit d977a49ef0fb5377379dbb7516cad3ee8ecead41
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Tue Jan 26 20:56:11 2016 +0100

    tdf#40517 Unit test for question marks in number format
    
    Unit test for https://gerrit.libreoffice.org/21021/
    
    Add unit test for Engineering format
    Add unit test for optional sign in exponent
    
    Change-Id: I958ccdcc68a4e496cbd4bdc74d0650c133f3a3f7
    Reviewed-on: https://gerrit.libreoffice.org/21824
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/basic/qa/vba_tests/format.vb b/basic/qa/vba_tests/format.vb
index ce28378..b12596a 100644
--- a/basic/qa/vba_tests/format.vb
+++ b/basic/qa/vba_tests/format.vb
@@ -348,6 +348,10 @@ Sub Custom_Number_Format_Sample()
     TestLog_ASSERT TestStr = ".25%", "##.###\%: " & TestStr
     'MsgBox TestStr
 
+    TestStr = Format(12.25, "0.???") '12.25_
+    TestLog_ASSERT TestStr = "12.25 ", "0.???: " & TestStr
+    'MsgBox TestStr
+
     Exit Sub
 errorHandler:
         TestLog_ASSERT (false), testName & ": hit error handler"
diff --git a/sc/qa/unit/data/contentCSV/numberFormat.csv b/sc/qa/unit/data/contentCSV/numberFormat.csv
index 83cbbab..8159839 100644
--- a/sc/qa/unit/data/contentCSV/numberFormat.csv
+++ b/sc/qa/unit/data/contentCSV/numberFormat.csv
@@ -5,3 +5,5 @@
 25 31/82
 FALSE,TRUE
 />
+258.9E3,-953E-06
+0.5  
diff --git a/sc/qa/unit/data/ods/formats.ods b/sc/qa/unit/data/ods/formats.ods
index 1837529..ba9440e 100644
Binary files a/sc/qa/unit/data/ods/formats.ods and b/sc/qa/unit/data/ods/formats.ods differ


More information about the Libreoffice-commits mailing list