diff options
-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 |