add test case for armenian alphabet

This commit is contained in:
Eliot Jones 2023-06-04 14:14:18 +01:00
parent 9d2b3f914d
commit 7fe5fc2272
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
namespace UglyToad.PdfPig.Tests.Integration;
using System.Linq;
using Xunit;
public class LittlePigInArmenianTests
{
[Fact]
public void CanReadTextCorrectly()
{
var path = IntegrationHelpers.GetDocumentPath("little-pig-in-armenian.pdf");
using var document = PdfDocument.Open(path);
var page = document.GetPage(1);
var words = page.GetWords().ToList();
var textFromWords = string.Join(" ", words.Select(x => x.Text));
Assert.Equal("փոքրիկ խոզ", textFromWords);
}
}