Mohsin26 / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

DateUtilTest - incorrect test - testParseRFC822() #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run default testsuite;

What is the expected output? What do you see instead?
[FAIL] testParseRFC822 - com.adobe.utils::DateUtilTest
Error: d.date == 5 - expected true but was false

What version of the product are you using? On what operating system?
as3corelib 0.9, windows vista, timezone +0300

Please provide any additional information below.
Suggested fix is to use -

assertTrue("d.dateUTC == 5",d.dateUTC == 5);
assertTrue("d.monthUTC == 11", d.monthUTC == 11);
assertTrue("d.fullYearUTC == 2005", d.fullYearUTC == 2005);
// Fixes issue #12 - use UTC so time zone doesn't throw off hours
assertTrue("d.hoursUTC == 22", d.hoursUTC == 22 );
assertTrue("d.minutesUTC == 55", d.minutesUTC == 55);
assertTrue("d.secondsUTC == 43", d.secondsUTC == 43);

instead of the -

assertTrue("d.date == 5",d.date == 5);
assertTrue("d.month == 11", d.month == 11);
assertTrue("d.fullYear == 2005", d.fullYear == 2005);
// Fixes issue #12 - use UTC so time zone doesn't throw off hours
assertTrue("d.hoursUTC == 22", d.hoursUTC == 22 );
assertTrue("d.minutes == 55", d.minutes == 55);
assertTrue("d.seconds == 43", d.seconds == 43);

Original issue reported on code.google.com by sergey.b...@gmail.com on 16 Oct 2007 at 8:31

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mikechambers on 2 Jul 2008 at 5:52