dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.94k stars 788 forks source link

Test suite failure in measures/test.fsx - d #107

Closed KevinRansom closed 9 years ago

KevinRansom commented 9 years ago

Originally opened on CodePlex by ranma42

Running:

cd tests/fsharp/core
./run-all.sh

The test fails with this message: ... Running math/measures/test.fsx....

-------------------
Failures in math/measures/test.fsx
    FAILED: d
-------------------

...

FAILURE: math/measures/test.fsx - d

The error message is somewhat misleading, because there is no measures dir inside math (it is located in core). The interactive seems to indicate that this failure might be caused by localization:

> (2.0M).ToString();;
val it : string = "2,0"

The string corresponding to "2.0M" is "2,0", while the test expects it to be "2.0". I am running this in Mono in an Italian locale. Does this test assume an English locale? Or is this a bug of the Mono implementation of Decimal.ToString() ?

latkin commented 9 years ago

I've got a fix for this