Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-834

Unit tests fail if default locale is not en_US

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 4.0.0
    • Labels:
      None

      Description

      Unit tests for the ToNumber function with a dollar sign as currency symbol only work if the default locale of the machine running the tests is en_US (or another locale that uses the dollar sign as their currency symbol). The code causing the failure isn’t really a problem (i.e. it’s behaving correctly), but fact that a dollar sign is hard-coded as the currency symbol in the test code makes the test fails in non-US locales.

        Attachments

        1. PHOENIX-834.patch
          3 kB
          Gabriel Reid

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.reid Gabriel Reid
                Reporter:
                gabriel.reid Gabriel Reid
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: