diff options
author | Bruce Bowyer-Smyth <bbowyersmyth@live.com.au> | 2017-01-27 10:01:24 +0300 |
---|---|---|
committer | Bruce Bowyer-Smyth <bbowyersmyth@live.com.au> | 2017-01-27 10:01:24 +0300 |
commit | 17810705b58e7e4da6ce9c6e8716615980436e0d (patch) | |
tree | 7fb7519a9be60cda9fc4f5a11d8af8231bed953b | |
parent | c83a6e7dc28795d1d53c4f64ae128d35ffa7e194 (diff) |
Additional compare OrdinalIgnoreCase tests
-rw-r--r-- | src/System.Runtime/tests/System/StringTests.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/System.Runtime/tests/System/StringTests.cs b/src/System.Runtime/tests/System/StringTests.cs index 39d0300e89..3346f33579 100644 --- a/src/System.Runtime/tests/System/StringTests.cs +++ b/src/System.Runtime/tests/System/StringTests.cs @@ -550,6 +550,20 @@ namespace System.Tests [InlineData("Goodbye", 0, "Hello", 0, 5, StringComparison.OrdinalIgnoreCase, -1)] [InlineData("HELLO", 2, "hello", 2, 3, StringComparison.OrdinalIgnoreCase, 0)] [InlineData("Hello", 2, "Goodbye", 2, 3, StringComparison.OrdinalIgnoreCase, -1)] + [InlineData("A", 0, "x", 0, 1, StringComparison.OrdinalIgnoreCase, -1)] + [InlineData("a", 0, "X", 0, 1, StringComparison.OrdinalIgnoreCase, -1)] + [InlineData("[", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("[", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("\\", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("\\", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("]", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("]", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("^", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("^", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("_", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("_", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("`", 0, "A", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] + [InlineData("`", 0, "a", 0, 1, StringComparison.OrdinalIgnoreCase, 1)] [InlineData(null, 0, null, 0, 0, StringComparison.OrdinalIgnoreCase, 0)] [InlineData("Hello", 0, null, 0, 5, StringComparison.OrdinalIgnoreCase, 1)] [InlineData(null, 0, "Hello", 0, 5, StringComparison.OrdinalIgnoreCase, -1)] |