Skip to content

Commit

Permalink
fix unit-test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t committed Jan 8, 2024
1 parent 7c17f9c commit 5b0efc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions table/render_test.go
Expand Up @@ -620,7 +620,7 @@ func TestTable_Render_CRLF(t *testing.T) {
tw := NewWriter()
tw.AppendHeader(testHeader)
tw.AppendRows(testRows)
tw.AppendRow(Row{5000, "Night", "King", 10000, "Was once a\r\nMortal \rMen"})
tw.AppendRow(Row{5000, "Night", "King", 10000, "Was once a Mortal\rMan"})
tw.AppendFooter(testFooter)

compareOutput(t, tw.Render(), `
Expand All @@ -630,8 +630,7 @@ func TestTable_Render_CRLF(t *testing.T) {
| 1 | Arya | Stark | 3000 | |
| 20 | Jon | Snow | 2000 | You know nothing, Jon Snow! |
| 300 | Tyrion | Lannister | 5000 | |
| 5000 | Night | King | 10000 | Was once a |
| | | | | Mental |
| 5000 | Night | King | 10000 | Man once a Mortal |
+------+------------+-----------+--------+-----------------------------+
| | | TOTAL | 10000 | |
+------+------------+-----------+--------+-----------------------------+`)
Expand Down

0 comments on commit 5b0efc3

Please sign in to comment.