You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2024/02/16 12:33:55 UTC

[Bug 68635] New: POI unit tests fail when run under non-US locale

https://bz.apache.org/bugzilla/show_bug.cgi?id=68635

            Bug ID: 68635
           Summary: POI unit tests fail when run under non-US locale
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: axel@dua3.com
  Target Milestone: ---

POI unit tests fail when run under non-US locale. There already is a check for
this that tells what JVM flags to set to make the tests pass. However, the
tests should IMHO run "out of the box", as this also might frustrate new
contributors when a clean checkout and build fails for no apparent reason (the
check for the locale settings is done after several tests have already failed
so it's easy to overlook):

      Test testTextStrangeFormat() FAILED
      org.opentest4j.AssertionFailedError: expected: <--123456.7891> but was:
<--123456,7891>
          at
org.apache.poi.ss.formula.functions.TestText.testText(TestText.java:286)

      Test testTextEmptyStringWithDateFormat() PASSED
      Test testTextErrorAsFormat() PASSED
      Test testTextBlankTreatedAsZero() FAILED
      org.opentest4j.AssertionFailedError: expected: <0.000> but was: <0,000>
          at
org.apache.poi.ss.formula.functions.TestText.testText(TestText.java:286)

      Test testTextErrorAsValue() PASSED
      Test testTextWithDateFormatSecondArg() PASSED
      Test testTextVariousValidNumberFormats() FAILED
      org.opentest4j.AssertionFailedError: expected: <-123456.789> but was:
<-123456,789>
          at
org.apache.poi.ss.formula.functions.TestText.testText(TestText.java:286)

I will prepare and commit the necessary change.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 68635] POI unit tests fail when run under non-US locale

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68635

Axel Howind <ax...@dua3.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Axel Howind <ax...@dua3.com> ---
fixed in r1915827

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org