Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
locale-dependent test failure for day-of-week #42
Comments
|
Thanks for the report! What would you think would be the right solution for the issue? |
|
No idea, sorry. (Thought about it a bit when I discovered it; really drove home the value of explicit parameter (or closure/partials) dependencies, this is |
|
The solution for this issue - make the tests locale-independent. Easiest - remove the offender identified in this issue from the tests. Harder - set the default TZ to the known value during test execution and revert to the previous value afterwards. |
Building
707f16daf19e04cf182cc532a2cce8db170ea178using Leiningen, I get a test failure:This is a locale issue. In a REPL with my system locale (English in Austria):
In a REPL with
-Duser.country=USset on the JVM:This is consistent with the expected first DoW being Sunday in the US, but Monday in (at least continental) Europe.