Skip to content

Commit

Permalink
Added a (skipped) test for the Turkish I reported in #10
Browse files Browse the repository at this point in the history
  • Loading branch information
ctolkien committed Nov 1, 2021
1 parent a54b57c commit 04d9996
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Slugify.Core.Tests/SlugHelperTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Globalization;
using Xunit;

namespace Slugify.Tests
Expand Down Expand Up @@ -412,5 +413,19 @@ public void TestHandlingOfUnicodeCharacters()

Assert.Equal(expected, helper.GenerateSlug(original));
}

[Fact(Skip = "Is this actually a bug?")]
public void TurkishEncodingOfI()
{
//Set culture to Turkish
CultureInfo.CurrentCulture = new CultureInfo("tr-TR");
const string original = "FIFA 18";
const string expected = "fıfa 18";

var helper = Create();

Assert.Equal(expected, helper.GenerateSlug(original));

}
}
}

0 comments on commit 04d9996

Please sign in to comment.