Skip to content

Commit c4303e6

Browse files
Fix TrailingBackSlash test to be platform-independent (trim CRLF before assertion)
Agent-Logs-Url: https://github.com/Efferent-Health/HL7-V2/sessions/184f4fd1-2c30-4996-a2f4-cdf74042cebb Co-authored-by: jaime-olivares <6194083+jaime-olivares@users.noreply.github.com>
1 parent 228a82f commit c4303e6

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Enforce LF line endings for text files to ensure cross-platform consistency
2+
* text=auto eol=lf
3+
*.cs text eol=lf
4+
*.csproj text eol=lf
5+
*.yml text eol=lf
6+
*.md text eol=lf
7+
*.txt text eol=lf
8+
*.json text eol=lf
9+
10+
# Binary files
11+
*.dll binary
12+
*.nupkg binary
13+
*.png binary

test/EncodingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void TrailingBackSlash()
235235

236236
var strMessage = message.SerializeMessage();
237237

238-
Assert.EndsWith("\\E\\\n", strMessage);
238+
Assert.EndsWith("\\E\\", strMessage.TrimEnd('\r', '\n'));
239239
TestContext.WriteLine(strMessage);
240240
}
241241

0 commit comments

Comments
 (0)