Commit Graph
92 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Zoltan Varga 42edc1dddb Revert "[runtime] Add support for jagged array ctors which create an array of arrays. Fixes #17944."
This reverts commit 2136f8f0bc.

Revert this as it breaks make check PROFILE=net_2_0 in corlib.
2014-02-27 12:36:37 -05:00
Zoltan Varga 2136f8f0bc [runtime] Add support for jagged array ctors which create an array of arrays. Fixes #17944. 2014-02-26 16:16:45 -05:00
Marek Safar b90fc130ff [corlib] Allow to use custom comparer when sorting null values. 2014-02-03 20:27:58 +01:00
Marek Safar 27b2190c88 [corlib] Throw correct exception when array::copy elements don't match 2014-02-03 16:13:49 +01:00
Marek Safar c6989ab9f9 Unify Array/List FindIndex/FindLastIndex handling and argument checking. Fixes #14632 2013-09-13 14:51:08 +02:00
Rodrigo Kumpera 9f438cd066 Properly bzero unaligned small blocks. Fixes #11184. 2013-03-15 16:30:15 -04:00
Zoltan Varga b373bf0cfb Fix a regression introduced by e14ff38a54. Fixes #8904. 2012-12-16 21:39:31 +01:00
Marek Safar b8b042389f Fix array IStructuralEquatable.GetHashCode to use provided comparer. 2012-10-02 13:20:45 +01:00
Marek Safar e0c751d31d Fix array binary comparer values ordering. Fixes #5409 2012-05-30 14:30:48 +01:00
Marek Safar a1d0f2206f Add tests for InternalArray::GetIndex 2011-11-30 14:17:01 +00:00
Marek Safar 69b05e2137 Fix Array::Contains for null items via ICollection<T>. Fixes #2260 2011-11-30 13:48:16 +00:00
Zoltan Varga 13d2cbd195 Fix sorting of ulong[] arrays among others when using the non-generic Sort() overloads. 2011-07-01 01:01:15 +02:00
Zoltan Varga d502006aac Fix Object.MemberwiseClone () on arrays. Fixes #688033. 2011-04-17 23:48:30 +02:00
Zoltan Varga 8e755d3501 Fix another regression in the Array.Sort () methods, allow keys and items to be of different length. Fixes #648828. 2010-10-23 16:47:30 +02:00
Miguel de Icaza 19e2aec347 2010-07-21 Miguel de Icaza <[email protected]>
* Array.cs: Fixes a couple of other cases where we were missing
	the handling for null values, fixes a broken case of null
	handling. 


svn path=/trunk/mcs/; revision=160699
2010-07-21 21:47:44 +00:00
Miguel de Icaza 68622b622a 2010-07-17 Miguel de Icaza <[email protected]>
* Array.cs: Fix for bug #622101, this reverts portions of the
	broken patch that was introduced as part of the fix for #351638
	which was mostly a set of optimizations, but some were just
	wrong. 



svn path=/trunk/mcs/; revision=160527
2010-07-17 20:38:39 +00:00
Zoltan Varga f2c97b7c5f 2010-06-25 Zoltan Varga <[email protected]>
* Array.cs (SortImpl): Fix the 'fast path' which used 'as' to cast objects so
	it never sorted the items array if it was not a object[]. Fixes #616416.

svn path=/trunk/mcs/; revision=159551
2010-06-25 17:33:23 +00:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
Gonzalo Paniagua Javier 0c32d449df A few more tests
svn path=/trunk/mcs/; revision=150145
2010-01-25 20:36:48 +00:00
Zoltan Varga f8fa69039f 2010-01-25 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for SetValue () + nullables.

svn path=/trunk/mcs/; revision=150124
2010-01-25 12:46:41 +00:00
Rodrigo Kumpera 6b69482d58 2010-01-15 Rodrigo Kumpera <[email protected]>
* Array.cs: Implement IStructuralComparer.

2010-01-15 Rodrigo Kumpera  <[email protected]>

	* ArrayTest.cs: Tests for IStructuralComparer::CompareTo.

svn path=/trunk/mcs/; revision=149647
2010-01-15 20:50:45 +00:00
Zoltan Varga aa7475f63d 2010-01-03 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for #564095.

svn path=/trunk/mcs/; revision=148975
2010-01-03 14:10:23 +00:00
Jb Evain b52b44583d in System:
2009-11-24  Jb Evain  <[email protected]>

	* Array.cs (IList.this[int]): prevent the use of the IList indexer 
	when dealing with a multi dimensional array.

in Test/System:
2009-11-24  Jb Evain  <[email protected]>

	* ArrayTest.cs: test that we don't allow the use of the IList indexer
	on a multi dimensional array.

svn path=/trunk/mcs/; revision=146831
2009-11-24 15:01:31 +00:00
Jb Evain 0af9e2e5dd in System:
2009-11-24  Jb Evain  <[email protected]>

	* Array.cs (Clear): throw an IndexOutOfRangeException instead
	of an ArgumentOutRangeException for a negative length.

in Test/System:
2009-11-24  Jb Evain  <[email protected]>

	* ArrayTest: test for the proper exception on Clear ().

svn path=/trunk/mcs/; revision=146825
2009-11-24 14:20:01 +00:00
Jb Evain a87793c5b2 2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: add test ensuring we do not allow open
	generic types in CreateInstance.


svn path=/trunk/mcs/; revision=146823
2009-11-24 13:58:53 +00:00
Jb Evain 9b514150df 2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: Add test ensuring we do not allow void arrays.

svn path=/trunk/mcs/; revision=146815
2009-11-24 13:31:35 +00:00
Gonzalo Paniagua Javier a1b4d6f1c7 2009-07-27 Gonzalo Paniagua Javier <[email protected]>
* ArrayTest.cs: new LastIndexOf test for 0-length arrays.


svn path=/trunk/mcs/; revision=138735
2009-07-27 15:35:42 +00:00
Robert Jordan 13c812a9dd 2009-06-26 Robert Jordan <[email protected]>
* StringTest.cs: Convert all tests to new-style nunit
	classes/methods.

	* ArrayTest.cs, ConvertTest.cs, DecimalTest.cs, TimeSpanTest.cs:
	likewise.

	* DecimalTest2.cs: likewise, 5 hidden tests enabled.


svn path=/trunk/mcs/; revision=137015
2009-06-26 22:30:55 +00:00
Miguel de Icaza be27e873d0 2009-06-10 Gert Driesen <[email protected]>
* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

svn path=/trunk/mcs/; revision=136908
2009-06-26 00:15:37 +00:00
Zoltan Varga dbbe281755 2009-04-10 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for ICollection:IsReadOnly on generic arrays.

svn path=/trunk/mcs/; revision=131470
2009-04-10 14:29:01 +00:00
Marek Safar 9f79cbc844 New test.
svn path=/trunk/mcs/; revision=105251
2008-06-07 22:05:39 +00:00
Marek Safar ec75b092c1 2008-05-30 Marek Safar <[email protected]>
* ArrayTest.cs: New IndexOf test.


svn path=/trunk/mcs/; revision=104525
2008-05-30 14:13:36 +00:00
Zoltan Varga 747e17cbaf 2008-04-26 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for #383876.

svn path=/trunk/mcs/; revision=101919
2008-04-26 14:49:16 +00:00
Marek Safar 3677950901 2008-01-08 Marek Safar <[email protected]>
* ArrayTest.cs: Test both LastIndexOf versions for
	ArgumentOutOfRangeException.


svn path=/trunk/mcs/; revision=92472
2008-01-08 17:33:51 +00:00
Zoltan Varga 4c009e5f97 2007-11-14 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for Copy () and exceptions.

svn path=/trunk/mcs/; revision=89613
2007-11-14 14:39:25 +00:00
Gert Driesen 8614e06b48 * ArrayTest.cs: Improved tests for IEnumerable<T> implementation.
* Array.cs: Distinguish between notstarted and finished state when
throwing IOE in Current, and provide meaningful exception message.

svn path=/trunk/mcs/; revision=88917
2007-11-05 21:13:42 +00:00
Sebastien Pouliot efb5ca40ee 2007-11-05 Sebastien Pouliot <[email protected]>
* ArrayTest.cs: Add test cases for Enumerator<T>.Reset (#322248).


svn path=/trunk/mcs/; revision=88907
2007-11-05 19:16:33 +00:00
Zoltan Varga 7ec8209762 2007-08-11 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add new test for bug #82345.

svn path=/trunk/mcs/; revision=83866
2007-08-11 15:43:51 +00:00
Gert Driesen e80c7764f2 * DirectoryTest.cs: Restore original CurrentCulture on teardown.
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930. 
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat  
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.

svn path=/trunk/mcs/; revision=80626
2007-06-24 14:20:09 +00:00
Gert Driesen 8278f04d8c * ArrayTest.cs: Added test for Resize. Spaces to tabs.
svn path=/trunk/mcs/; revision=75965
2007-04-19 17:30:39 +00:00
Eyal Alalouf 30c28c41d7 Mark tests as not working under TARGET_JVM
svn path=/trunk/mcs/; revision=74246
2007-03-14 10:47:05 +00:00
Miguel de Icaza 72fc49193a 2007-01-20 Miguel de Icaza <[email protected]>
* Array.cs (InternalArray__ICollection_Contains,
	InternalArray__IndexOf): Cope with null values in the array (See
	bug #80563).



svn path=/trunk/mcs/; revision=71400
2007-01-20 23:06:07 +00:00
Robert Jordan ef60f6129d 2006-12-22 Robert Jordan <[email protected]>
* ArrayTest.cs: Add tests for bug #80299.


svn path=/trunk/mcs/; revision=69911
2006-12-22 00:02:07 +00:00
Atsushi Eno 089398a170 2006-05-08 Atsushi Enomoto <[email protected]>
* ArrayTest.cs : use proper comparer in IndexOf() and LastIndexOf().
	  Patch by Kazuki Oikawa. Fixed bug #77277.

	* List.cs : use proper comparer in Contains(), IndexOf() and
	  LastIndexOf(). Patch by Kazuki Oikawa. Fixed bug #77277.

	* ArrayTest.cs : test for bug #77277 by Kazuki Oikawa.

	* ListTest.cs : test for bug #77277 by Kazuki Oikawa.


svn path=/trunk/mcs/; revision=60396
2006-05-08 07:34:06 +00:00
Sebastien Pouliot c014aa4459 ArrayTest.cs: Added test cases for a binary search with an empty list (bug #77030). Fixed other test cases so they execute without failures under MS 2.0. Removed test cases for API changes in 2.0 final.
svn path=/trunk/mcs/; revision=54611
2005-12-19 16:03:19 +00:00
Zoltan Varga 98283ccfbe 2005-12-13 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add regression test for #76973.

svn path=/trunk/mcs/; revision=54326
2005-12-13 22:01:44 +00:00
Zoltan Varga 63e5063028 2005-11-19 Zoltan Varga <[email protected]>
* ArrayTest.cs: Reenable some previously not-working 2.0 tests.

svn path=/trunk/mcs/; revision=53278
2005-11-19 18:43:56 +00:00
Raja R Harinath f899f9b446 * System/Array.cs (Resize<T>) [2-argument variant]: Fix nullref.
* Test/System/ArrayTest.cs (Resize_null): New.  Test Resize<T> with a null argument.

svn path=/trunk/mcs/; revision=52898
2005-11-11 08:38:45 +00:00
Ben Maurer 328bb56d65 In System:
2005-05-07  Ben Maurer  <[email protected]>

	* Array.cs (BinarySearch): Patch from kazuki to pass arguments to
	the comparer in the same order as msft. Fixes #70725

In Test/System:
2005-05-07  Ben Maurer  <[email protected]>

	* ArrayTest.cs: Test for #70725.


svn path=/trunk/mcs/; revision=44201
2005-05-07 16:15:33 +00:00