Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Feb 5, 2024
1 parent 86475c7 commit 10de094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stringify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ func checkString(t *testing.T, tbl *Table[any], tt stringTest) {
t.Errorf("unexpected error: %v", err)
}
if tt.want != string(gotBytes) {
t.Errorf("String got:\n%swant:\n%s", got, tt.want)
t.Errorf("MarshalText got:\n%swant:\n%s", gotBytes, tt.want)
}
}

2 comments on commit 10de094

@mieczkowski
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaissmai there should be new line char before want:

t.Errorf("MarshalText got:\n%s\nwant:\n%s", gotBytes, tt.want)

@gaissmai
Copy link
Owner Author

@gaissmai gaissmai commented on 10de094 Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will fix it soon.

Not really, bart.Table.Fprint(w) ends in newline, in contrast to MarshalJSON

Please sign in to comment.