Skip to content

Commit

Permalink
Don't test non-ascii characters in TestEncodingString/Array
Browse files Browse the repository at this point in the history
This is because LPStr doesn't always support non-ascii characters.
  • Loading branch information
Exanite committed Dec 7, 2024
1 parent e2737e1 commit 4db0d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Silk.NET.Core.Tests/TestSilkMarshal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public unsafe void TestEncodingFromLPWStr()
[Fact]
public void TestEncodingString()
{
var input = "Hello world 🧵";
var input = "Hello world";
foreach (var encoding in encodings)
{
var pointer = SilkMarshal.StringToPtr(input, encoding);
Expand All @@ -76,7 +76,7 @@ public void TestEncodingStringArray()
{
var inputs = new List<string>()
{
"Hello world 🧵",
"Hello world",
"Foo",
"Bar",
"123",
Expand Down

0 comments on commit 4db0d73

Please sign in to comment.