On Sat, 2009-08-08 at 19:02 -0700, Marc Garcia wrote:
> Hi Rudolph,
> 
> take a look at the English locale tests [1]. You could use it as
> reference for writing tests for you locale. I don't think it's worth
> to include tests for every locale into django, but if you do think so,
> just share them with me.

Further to this, any locale-specific tests in this area should not just
exercise that when passed a particular string, the localisation process
works. That's already tested in other places (such as the tests Marc
points to). Adding a test that shows "%m" outputs the correct month in
Polish doesn't tell us anything, since we already know the core
infrastructure works (it's tested outside of the Polish tests).
Similarly a test that says "%Y-%m-%d" outputs year then month then day
doesn't tell us anything.

So tests that show a particular format string produces a particular
result aren't really useful. It just shows that the author of the format
string understood what the result should be, not that the format string
is correct. Thus, I'm not quite sure what locale-specific tests Rudolph
is thinking of adding here.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django I18N" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Django-I18N?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to