Commit Graph
12 Commits
Author SHA1 Message Date
Jb Evain fb7a99f5f1 in System.Collections.Generic:
2007-08-20  Jb Evain  <[email protected]>

	* SortedList.cs: don't crash in ListKeys and ListValues
	when CopyTo targets an empty array, and that the
	sorted list is empty. Fixes #82492.

in Tests/System.Collections.Generic:
2007-08-20  Jb Evain  <[email protected]>

	* SortedListTest.cs: Tests for #82492.

svn path=/trunk/mcs/; revision=84419
2007-08-20 01:53:32 +00:00
Raja R Harinath 822e74d15d In .:
* System.dll.sources: Add RBTree.cs.

In System.Collections.Generic:
	Make add and remove operations O(log n).
	* SortedDictionary.cs: Rewrite to use the red-black tree
	implementation from RBTree.cs.
	* RBTree.cs: Some more refactoring.  Rename Insert() to Intern(),
	and modify semantics slightly.  Replace Contains() with Lookup().

In Test/System.Collections.Generic:
	* SortedDictionaryTest.cs (AddNullKeyNullable): Enable.

svn path=/trunk/mcs/; revision=76537
2007-05-01 19:07:31 +00:00
Gert Driesen 936bb390fb * QueueTest.cs: Removed usage of deprecated Assertion class. Added
test for TrimExcess. Added tests for binary serialization.
* StackTest.cs: Removed usage of deprecated Assertion class. Added
test for TrimExcess. Added tests for binary serialization.
* Queue.cs: Fixed binary serialization, based on patch provided by
Lionel Cuir. Fixes TrimExcess to use SetCapacity, before it was not
updating _head which could lead to IndexOutOfRangeException.
* Stack.cs: Fixed binary serialization, based on patch provided by
Lionel Cuir. In Pop, clear entry from array to help GC.

svn path=/trunk/mcs/; revision=76069
2007-04-22 16:21:13 +00:00
Alan McGovern 968a00b667 Fixed compilation
svn path=/trunk/mcs/; revision=75039
2007-03-27 18:46:25 +00:00
Ilya Kharmatsky 614c713079 Added 'Ignore' attribute in SortedDictionaryTest, under TARGET_JVM configuration
in order to workarround not working test.


svn path=/trunk/mcs/; revision=72469
2007-02-08 12:46:01 +00:00
Ilya Kharmatsky 5130ff839e Added 'Ignore' attribute under TARGET_JVM in order to workaround Grasshopper's bug.
svn path=/trunk/mcs/; revision=71674
2007-01-25 16:33:09 +00:00
Andrew Skiba 0cb3796ca5 TARGET_JVM to workaround CopyTo limitations
svn path=/trunk/mcs/; revision=67925
2006-11-15 14:44:13 +00:00
Atsushi Eno 3ff8295d31 2006-04-05 Atsushi Enomoto <[email protected]>
* System.dll.sources : added SortedDictionary.cs.
	* System_test.dll.sources : added SortedDictionaryTest.cs.

	* SortedDictionary.cs : new file. The original code is mostly
	  from Kazuki Oikawa.

	* SortedDictionaryTest.cs : new test.


svn path=/trunk/mcs/; revision=59052
2006-04-05 07:36:29 +00:00
Zoltan Varga 97566b8b36 2005-11-10 Zoltan Varga <[email protected]>
* StackTest.cs QueueTest.cs: Remove tests for removed TrimToSize ()
	method.

svn path=/trunk/mcs/; revision=52858
2005-11-10 17:02:50 +00:00
Zoltan Varga 4cbdd0f90a 2005-11-09 Zoltan Varga <[email protected]>
* SortedListTest.cs: New file.

svn path=/trunk/mcs/; revision=52802
2005-11-09 22:04:32 +00:00
David Waite 37f4a41d91 2005-09-04 David Waite <[email protected]>
* LinkedListTest.cs: Added tests for LinkedList<T>


svn path=/trunk/mcs/; revision=49414
2005-09-04 21:12:02 +00:00
Atsushi Eno f12881b652 2005-05-13 Atsushi Enomoto <[email protected]>
* corlib_test.dll.sources,
	  corlib.dll.sources: generic Queue.cs and Stack.cs are now in System.
	* System_test.dll.sources,
	  System.dll.sources: generic Queue.cs and Stack.cs are now in System.

	* Queue.cs, Stack.cs: moved to System.dll

	* QueueTest.cs, StackTest.cs: They are now in System.dll


svn path=/trunk/mcs/; revision=44484
2005-05-13 03:50:32 +00:00