Skip to content

Commit 7edf43a

Browse files
Fix test for crlf / lf differences
1 parent 3bdaf74 commit 7edf43a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

UnityDataTool.Tests/WebBundleSupportTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public async Task ArchiveList_WebBundle_ListFilesCorrectly(
6868
Assert.AreEqual(0, await Program.Main(new string[] { "archive", "list", path }));
6969

7070
var actualOutput = sw.ToString();
71+
72+
// the expectedOutput has "lf" line endings but running on Windows
73+
// the console output will have "crlr"
74+
actualOutput = actualOutput.Replace("\r\n", "\n");
75+
7176
var expectedOutput = (
7277
@"data.unity3d
7378
Size: 253044

0 commit comments

Comments
 (0)