mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 10:55:04 +08:00
add DlaHelper for tests and correct minor typos
This commit is contained in:
20
src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs
Normal file
20
src/UglyToad.PdfPig.Tests/Dla/DlaHelper.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace UglyToad.PdfPig.Tests.Dla
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
internal static class DlaHelper
|
||||
{
|
||||
public static string GetDocumentPath(string name, bool isPdf = true)
|
||||
{
|
||||
var documentFolder = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..", "..", "..", "Dla", "Documents"));
|
||||
|
||||
if (!name.EndsWith(".pdf") && isPdf)
|
||||
{
|
||||
name += ".pdf";
|
||||
}
|
||||
|
||||
return Path.Combine(documentFolder, name);
|
||||
}
|
||||
}
|
||||
}
|
@@ -6727,7 +6727,6 @@
|
||||
|
||||
// root -> right side -> right side
|
||||
Assert.Null(kdTree.Root.RightChild.RightChild);
|
||||
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
@@ -183,7 +183,7 @@
|
||||
var dataFloat = data.Select(x => (float)x);
|
||||
Assert.Equal((float)expected, dataFloat.Mode(), PreciseDoubleComparer);
|
||||
}
|
||||
|
||||
|
||||
[Theory]
|
||||
[MemberData(nameof(ModeDataNaN))]
|
||||
public void ModeNaN(double[] data)
|
||||
|
Reference in New Issue
Block a user