Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 97fb231

Browse files
Additional unit test cases for UTF-8 validation (#37162)
1 parent b1448c5 commit 97fb231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/System.Runtime/tests/System/Text/Unicode/Utf8UtilityTests.ValidateBytes.netcoreapp.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void GetIndexOfFirstInvalidUtf8Sequence_WithLargeValidBuffers(string inpu
118118
[InlineData("3031" + "E1C080" + EURO_SYMBOL + EURO_SYMBOL, 2, 2, 0)] // Improperly terminated 3-byte sequence at start of DWORD
119119
[InlineData("3031" + "EDA080" + EURO_SYMBOL + EURO_SYMBOL, 2, 2, 0)] // Surrogate 3-byte sequence at start of DWORD
120120
[InlineData("3031" + "E69C88" + "E59B" + "E69C88", 5, 3, 0)] // Incomplete 3-byte sequence surrounded by valid 3-byte sequences
121+
[InlineData("E78B80" + "80", 3, 1, 0)] // Valid 3-byte sequence followed by standalone continuation byte
121122
[InlineData("3031" + "F5808080", 2, 2, 0)] // [ F5 ] is always invalid
122123
[InlineData("3031" + "F6808080", 2, 2, 0)] // [ F6 ] is always invalid
123124
[InlineData("3031" + "F7808080", 2, 2, 0)] // [ F7 ] is always invalid

0 commit comments

Comments
 (0)