diff options
author | Zoltan Varga <vargaz@gmail.com> | 2008-04-26 18:49:16 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2008-04-26 18:49:16 +0400 |
commit | 747e17cbafe1190b9752603eba2cc37f107bf9fb (patch) | |
tree | f16ed21b66c968302651c6255c2e4cbac9b5d0c7 | |
parent | 80aed52649f59879aa678201f65e4766b5d9146f (diff) |
2008-04-26 Zoltan Varga <vargaz@gmail.com>
* ArrayTest.cs: Add a test for #383876.
svn path=/trunk/mcs/; revision=101919
-rw-r--r-- | mcs/class/corlib/Test/System/ArrayTest.cs | 2 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System/ChangeLog | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System/ArrayTest.cs b/mcs/class/corlib/Test/System/ArrayTest.cs index 93fddcd331d..695813ff84b 100644 --- a/mcs/class/corlib/Test/System/ArrayTest.cs +++ b/mcs/class/corlib/Test/System/ArrayTest.cs @@ -1395,6 +1395,8 @@ public class ArrayTest : Assertion AssertEquals("#K05", 0, Array.LastIndexOf(s1, "this")); AssertEquals("#K06", 4, Array.LastIndexOf(s1, "test")); AssertEquals("#K07", 3, Array.LastIndexOf(s1, "a")); + + AssertEquals (-1, Array.LastIndexOf (new String [0], "foo")); } [Test] diff --git a/mcs/class/corlib/Test/System/ChangeLog b/mcs/class/corlib/Test/System/ChangeLog index f75e73c6d12..a960fb92183 100644 --- a/mcs/class/corlib/Test/System/ChangeLog +++ b/mcs/class/corlib/Test/System/ChangeLog @@ -1,3 +1,7 @@ +2008-04-26 Zoltan Varga <vargaz@gmail.com> + + * ArrayTest.cs: Add a test for #383876. + 2008-04-16 Zoltan Varga <vargaz@gmail.com> * DateTimeOffsetTest.cs (ToStringWithFormatAndCulture): Avoid dependency on |