-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running test
fails
#861
Comments
Other things that could be improved about this message: donβt mix present and past tense, donβt use percentage for passed tests and fraction for failed tests. Not sure the assert stats are useful. |
Hm, that's interesting. It's probably a good thing that our test report formats numbers that are locale-specific, but our Grade build should nevertheless be consistent. For now, you should be able to get the tests passing with
Yeah, I agree, the summary can be polished up a bit. But, the number of assertions is meaningful for some users (CC @jjmaestro). |
@odenix my rationale when adding this was that the % was a nicer metric for Plus, it doesn't hurt just having some summary at the end of the test run, right? :) Most test frameworks report these types of metric! |
I don't think that English messages should use German number formatting. It would, of course, make sense in German messages. |
Honestly I don't know why this happen. My MacBook is set up in English/US, Keyboard is set up to English/US. My IDE is in English/US. I am "only" located in Germany. So I'm also super curious why this even happened. I am with @odenix here. This is a developer tool, I guess it should stick to english defaults and shouldn't introduce local-specifics. |
Is the decimal different based on the language being used (as opposed to locale)? I don't have strong opinions here; we can use period decimals consistently if that's the norm. |
A locale is a combination of language and country/region. By honoring the user's locale but displaying messages in English, we effectively change their locale to an unusual combination of language and country/region, which can be confusing. It sounds like @StefMa has his locale set to en-US, but apparently his Pkl executable thinks it's en-DE or de-DE. |
Ah! I didn't realize "locale" was a technical term. My question was, really, does the decimal change based on language and not region? To answer that: doesn't look like it does. According to LocalePlanet, the decimal for en-DE is But, yeah, I agree that we're mis-formatting numbers here. All of our messages are written in en-US (Pkl currently does not change its messages based on locale), so changing the decimal here is a mistake. |
I opened a PR to fix that issue. The discussion what do display here and in which form can be discussed somewhere else. |
Hey guys,
greetings from Germany. We typically write numbers with
,
instead of.
π€β 1,20 Euro
β 1.20 Euro.
Why is this interesting? Cause right now I get errors when running
Right now these tests are failing:
The text was updated successfully, but these errors were encountered: