Skip to content

Commit

Permalink
Update PolyfillTests_StringBuilder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 21, 2024
1 parent 3214e90 commit 7b9c906
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Tests/PolyfillTests_StringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ public void StringBuilderCopyTo()

var span = new Span<char>(new char[1]);
builder.CopyTo(0, span, 1);
Assert.True(span.SequenceEqual("v"));
Assert.True(span is "v");

span = new(new char[1]);
builder.CopyTo(1, span, 1);
Assert.True(span.SequenceEqual("a"));
Assert.True(span is "a");

span = new(new char[2]);
builder.CopyTo(1, span, 2);
Assert.True(span.SequenceEqual("al"));
Assert.True(span is "al");

span = new(new char[5]);
builder.CopyTo(0, span, 5);
Assert.True(span.SequenceEqual("value"));
Assert.True(span is "value");
}

[Test]
Expand Down

0 comments on commit 7b9c906

Please sign in to comment.