Skip to content

Commit

Permalink
make LongNames give better failure output
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel committed Dec 16, 2022
1 parent 68e2f92 commit 4fa790d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/ICSharpCode.SharpZipLib.Tests/Tar/TarTests.cs
Expand Up @@ -206,7 +206,12 @@ private void TryLongName(string name)
{
TarEntry nextEntry = tarIn.GetNextEntry();

Assert.AreEqual(nextEntry.Name, name, "Name match failure");
if(nextEntry.Name != name)
{
Console.WriteLine($"Expected:\n{name}\nActual:{nextEntry.Name}");
}

Assert.AreEqual(name, nextEntry.Name, $"Name match failure (length: {name.Length})");
}
}

Expand Down

0 comments on commit 4fa790d

Please sign in to comment.