Skip to content

Commit 4b19790

Browse files
joekyoJay Conrod
authored and
Jay Conrod
committed
txtar: minor fix in unit test input
Change-Id: I7bb1caf63772a460206dd6ca0a35b11a61ca162f Reviewed-on: https://go-review.googlesource.com/c/tools/+/293531 Run-TryBot: Ian Lance Taylor <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Jay Conrod <[email protected]> Trust: Jay Conrod <[email protected]> Trust: Bryan C. Mills <[email protected]>
1 parent 9eb3535 commit 4b19790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

txtar/archive_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestFormat(t *testing.T) {
7070
{"file1", []byte("File 1 text.\n-- foo ---\nMore file 1 text.\n")},
7171
{"file 2", []byte("File 2 text.\n")},
7272
{"empty", []byte{}},
73-
{"noNL", []byte("hello world\n")},
73+
{"noNL", []byte("hello world")},
7474
},
7575
},
7676
wanted: `comment1
@@ -90,7 +90,7 @@ hello world
9090
for _, tt := range tests {
9191
t.Run(tt.name, func(t *testing.T) {
9292
result := Format(tt.input)
93-
if !reflect.DeepEqual(string(result), tt.wanted) {
93+
if string(result) != tt.wanted {
9494
t.Errorf("Wrong output. \nGot:\n%s\nWant:\n%s\n", string(result), tt.wanted)
9595
}
9696
})

0 commit comments

Comments
 (0)