[Mono-bugs] [Bug 45036][Wis] Changed - Array.BinarySearch starts at incorrect location.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 4 Aug 2003 16:59:31 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by duncan@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=45036
--- shadow/45036 Mon Aug 4 16:57:51 2003
+++ shadow/45036.tmp.9409 Mon Aug 4 16:59:31 2003
@@ -80,6 +80,40 @@
* co3757binarysearch_oo.cs
* co3758binarysearch_oiio.cs
* co3759binarysearch_ooi.cs
* co3760binarysearch_oiioi.cs
* co3777aslist.cs
+
+------- Additional Comments From duncan@ximian.com 2003-08-04 16:59 -------
+I see from
+http://bugzilla.ximian.com/showattachment.cgi?attach_id=4666 that the
+test case in question is co2460binarysearch_iioi. I'm running it on my
+unmodified corlib right now, and it seems to run just fine:
+
+diphthong:~/src/rotor $ mono co2460binarysearch_iioi.exe
+ArrayList.BinarySearch: Co2460BinarySearch runTest started...
+[] Construct ArrayList
+[] Use BinarySearch to find selected items
+[] Locate item in list using null comparer
+[] Locate insertion index of new list item
+[] Bogus Arguments
+System.ArgumentOutOfRangeException: Argument is out of range
+Parameter name: index is less than the lower bound of array.
+in <0x000fd> 00 System.Array:BinarySearch
+(System.Array,int,int,object,System.Collections.IComparer)
+in <0x0002a> 00 System.Collections.ArrayList:BinarySearch
+(int,int,object,System.Collections.IComparer)
+in <0x00cfb> 00 .Co2460BinarySearch_iiOI:runTest ()
+ caught
+System.ArgumentOutOfRangeException: Argument is out of range
+Parameter name: index is less than the lower bound of array.
+in <0x000fd> 00 System.Array:BinarySearch
+(System.Array,int,int,object,System.Collections.IComparer)
+in <0x0002a> 00 System.Collections.ArrayList:BinarySearch
+(int,int,object,System.Collections.IComparer)
+in <0x00e1e> 00 .Co2460BinarySearch_iiOI:runTest ()
+ caught
+ArrayList.BinarySearch: Co2460BinarySearch iCountTestcases==5 paSs
+
+It's a strange message to display, but it does say 'paSs' at the end...
+