[Mono-bugs] [Bug 399389] DateTime.AddMilliseconds should round to nearest integer

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 11 14:54:34 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=399389

User gonzalo at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399389#c3





--- Comment #3 from Gonzalo Paniagua Javier <gonzalo at novell.com>  2009-02-11 12:54:33 MST ---
All the following. I doubt that they work under MS...

Test Case Failures:
1) MonoTests.System.DateTimeTest.Milliseconds :   Expected: 632211641411234567
  But was:  632211641411230000

at MonoTests.System.DateTimeTest.Milliseconds () [0x00017] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:1769
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

2) MonoTests.System.DateTimeTest.OmittedSecondsFraction :   #2
  Expected: 2009-02-11 00:00:00.000
  But was:  2009-02-11 00:00:00.000

at MonoTests.System.DateTimeTest.OmittedSecondsFraction () [0x00044] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:2249
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

3) MonoTests.System.DateTimeTest.ParseExactMilliseconds :   Expected:
632211641411234567
  But was:  632211641411230000

at MonoTests.System.DateTimeTest.ParseExactMilliseconds () [0x0001d] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:1843
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

4) MonoTests.System.DateTimeTest.TestAssumeLocal :   Expected:
633391820582720000
  But was:  633391820582721262

at MonoTests.System.DateTimeTest.TestAssumeLocal () [0x00054] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:2358
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

5) MonoTests.System.DateTimeTest.TestRegularStyle :   Expected:
633391820582720000
  But was:  633391820582721262

at MonoTests.System.DateTimeTest.TestRegularStyle () [0x00053] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:2336
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

6) MonoTests.System.DateTimeTest.TestRoundTrip :   Expected: 633391820582720000
  But was:  633391820582721262

at MonoTests.System.DateTimeTest.TestRoundTrip () [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/Test/System/DateTimeTest.cs:2313
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/gonzalo/mono/trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs:159

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list