-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes data invariant format problems
The tests do not pass on machines that have different formatting than English language. The error happens since the results are written in different than expected format. 1. The main fix is to imbue en-US culture to the test thread so that results will be output in format that is comparable with the test format. 2. A secondary fix is to make comparisons between culture sensitive data type representations invariant when they do not have human readable dimensions. In OptimizationMonitor.cs case the cast between culture sensitive floating point and string will cause orders of magnitudes of error in output results. The intention of this path is not to offer a robust solution and remove future issues. There is room for refactoring where, for instance, locale information would be applied to input and output and logging/tracing would be clearly separated from another kind of locale sensitive handling. This way culture sensitive parts would be separated and particular output formats could be tested as separate cases if so desired. Fixes #74
- Loading branch information
1 parent
3780923
commit 135791d
Showing
13 changed files
with
74 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.