A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
633 B

using Xunit;
namespace Avalonia.Base.UnitTests.Media.TextFormatting
{
public class EastAsianWidthClassTrieGeneratorTests
{
[Fact(Skip = "Only run when we update the trie.")]
public void Should_Generate()
{
UnicodeEnumsGenerator.CreateEastAsianWidthClassEnum();
var trie = EastAsianWidthClassTrieGenerator.Execute(out var values);
foreach (var (start, end, value) in values)
{
var expected = (uint)value;
var actual = trie.Get(start);
Assert.Equal(expected, actual);
}
}
}
}