Skip to content

Commit

Permalink
Fix test comments so they match new test files
Browse files Browse the repository at this point in the history
The test corpus was switched out prior to open sourcing this project
but the test comments were never updated to match. This commit updates
the test comments to match the new files.
  • Loading branch information
dcorey-qualtrics committed Aug 2, 2024
1 parent a52221e commit b9b6dcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snappy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestSnappyReader(t *testing.T) {
"returns an error when the frame size header is smaller than the actual frame size": {
input: func() io.Reader {
data := mustReadFile("testdata/test.jsonl.snappy")
// data[3] is least significant byte in the frame header, which is 0x0B (27) in the unaltered file
// we should now be setting it to 0x0A (26)
// data[3] is least significant byte in the frame header, which is 0x40 (64) in the unaltered file
// we should now be setting it to 0x3F (63)
data[3] -= 1
return bytes.NewReader(data)
}(),
Expand All @@ -68,8 +68,8 @@ func TestSnappyReader(t *testing.T) {
"returns an error when the block size header is smaller than the actual block size": {
input: func() io.Reader {
data := mustReadFile("testdata/test.jsonl.snappy")
// data[7] is most significant byte in the block header, which is 0xE3 (227) in the unaltered file
// we should now be setting it to 0xE2 (226)
// data[7] is least significant byte in the block header, which is 0x76 (118) in the unaltered file
// we should now be setting it to 0x75 (117)
data[7] += 1
return bytes.NewReader(data)
}(),
Expand Down

0 comments on commit b9b6dcb

Please sign in to comment.