Skip to content

Commit 7f631f6

Browse files
committed
(GH-98) Better description of the problematic scenario
1 parent 710eba0 commit 7f631f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Source/HttpMultipartParser.UnitTests/SubsequenceFinderUnitTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ public void SmokeTest()
1717
}
1818

1919
[Fact]
20-
// This unit test demonstrates the bug in the 'Search' method when the haystack
21-
// contains a subset of the needle. Specifically, notice the '0x0D' byte in the
22-
// sample haystack followed by '0x0D, 0x0A' (which corresponds to the needle).
20+
// This unit test demonstrates the bug in the 'Search' method when the haystack contains
21+
// a subset of the needle immediately following by the needle. Specifically, notice the
22+
// '0x0D' byte in the sample haystack followed by '0x0D, 0x0A' (which corresponds to the needle).
2323
// See: https://github.com/Http-Multipart-Data-Parser/Http-Multipart-Data-Parser/issues/98
24-
public void Haystack_contains_subset_of_needle()
24+
public void Haystack_contains_subset_of_needle_followed_by_needle()
2525
{
2626
var haystack = new byte[] { 0x96, 0xC7, 0x0D, 0x0D, 0x0A, 0x2D, 0x2D, 0x63, 0x65 };
2727
var needle = new byte[] { 0x0D, 0x0A };

0 commit comments

Comments
 (0)