From: Nick H. <nic...@ho...> - 2013-08-20 20:31:04
|
Devs, I have created a new unit test for the date handler based on the Check Localized Date Displayer and Parser tool. This may be useful to test the re-factoring of the date handler code. Interestingly, four tests (commented out in the original code) fail. A DateError exception is not raised when setting a date with an invalid day or month. This unit test converts dates to strings and back, using the displayer and parser. We may wish to create other tests for the parser and displayer individually. Nick. |