Skip to content

Commit

Permalink
Update PolyfillTests_Memory.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 3, 2024
1 parent 7778aed commit a2f5bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Tests/PolyfillTests_Memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ partial class PolyfillTests
[Test]
public void ReadOnlySpan_ZeroLengthContains()
{
var span = new ReadOnlySpan<int>(Array.Empty<int>());
var span = new ReadOnlySpan<int>([]);

var found = span.Contains(0);
Assert.False(found);
Expand Down Expand Up @@ -53,7 +53,7 @@ public void ReadOnlySpan_TestMultipleContains()
[Test]
public void ReadOnlySpan_ZeroLengthContains_String()
{
var span = new ReadOnlySpan<string>(Array.Empty<string>());
var span = new ReadOnlySpan<string>([]);
var found = span.Contains("a");
Assert.False(found);
}
Expand Down Expand Up @@ -123,7 +123,7 @@ public void ReadOnlySpan_TestMultipleMatchContains_String()
[Test]
public void Span_ZeroLengthContains()
{
var span = new Span<int>(Array.Empty<int>());
var span = new Span<int>([]);

var found = span.Contains(0);
Assert.False(found);
Expand Down Expand Up @@ -173,7 +173,7 @@ public void Span_TestMultipleContains()
[Test]
public void Span_ZeroLengthContains_String()
{
var span = new Span<string>(Array.Empty<string>());
var span = new Span<string>([]);
var found = span.Contains("a");
Assert.False(found);
}
Expand Down

0 comments on commit a2f5bad

Please sign in to comment.