Skip to content

Commit f610291

Browse files
committed
Try with ReplaceLineEndings to fix the GitHub action
1 parent 2e75dd0 commit f610291

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Atypical.VirtualFileSystem.Core/VFS.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public override string ToString()
8484
sb.AppendLine(node.Path.Name);
8585
}
8686

87-
return sb.ToString().Trim().Normalize();
87+
return sb.ToString().Trim().ReplaceLineEndings();
8888
}
8989

9090
/// <summary>

tests/Atypical.VirtualFileSystem.UnitTests/Models/VirtualFileSystemTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public void ToString_returns_3_files_as_ASCII_tree()
480480
├── file1.txt
481481
├── file2.txt
482482
└── file3.txt
483-
""".Normalize();
483+
""".ReplaceLineEndings();
484484

485485
var vfs = new VFS()
486486
.CreateFile("file1.txt")
@@ -503,7 +503,7 @@ public void ToString_returns_3_directories_as_ASCII_tree()
503503
├── dir1
504504
├── dir2
505505
└── dir3
506-
""".Normalize();
506+
""".ReplaceLineEndings();
507507

508508
var vfs = new VFS()
509509
.CreateDirectory("dir1")
@@ -535,7 +535,7 @@ public void ToString_returns_3_files_and_3_directories_as_ASCII_tree()
535535
├── file1.txt
536536
├── file2.txt
537537
└── file3.txt
538-
""".Normalize();
538+
""".ReplaceLineEndings();
539539

540540
var vfs = new VFS()
541541
.CreateFile("dir1/file1.txt")
@@ -585,7 +585,7 @@ public void ToString_returns_a_complex_tree()
585585
├── file1.txt
586586
├── file2.txt
587587
└── file3.txt
588-
""".Normalize();
588+
""".ReplaceLineEndings();
589589

590590
var vfs = new VFS()
591591
.CreateFile("dir1/dir2/dir3/file1.txt")

0 commit comments

Comments
 (0)