Skip to content

Commit

Permalink
megacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Nov 1, 2017
1 parent 55b6a9f commit f42a598
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion html/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestBuffer(t *testing.T) {
test.That(t, z.Peek(9) == z.Peek(10), "tenth and eleventh tokens are EOF")
test.That(t, len(z.buf) == 10, "ten tokens after peeking")

tok = z.Shift()
_ = z.Shift()
tok = z.Shift()
test.That(t, tok.Hash == html.A, "third token is <a>")
test.That(t, z.pos == 2, "don't change position after peeking")
Expand Down
2 changes: 0 additions & 2 deletions html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ var (
gtBytes = []byte(">")
isBytes = []byte("=")
spaceBytes = []byte(" ")
cdataBytes = []byte("<![CDATA[")
cdataEndBytes = []byte("]]>")
doctypeBytes = []byte("<!doctype html>")
jsMimeBytes = []byte("text/javascript")
cssMimeBytes = []byte("text/css")
Expand Down
2 changes: 1 addition & 1 deletion svg/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestBuffer(t *testing.T) {
test.That(t, z.Peek(9) == z.Peek(10), "tenth and eleventh token are EOF")
test.That(t, len(z.buf) == 10, "ten tokens after peeking")

tok = z.Shift()
_ = z.Shift()
tok = z.Shift()
test.That(t, tok.Hash == svg.Path, "third token is <path>")
test.That(t, z.pos == 2, "don't change position after peeking")
Expand Down
2 changes: 1 addition & 1 deletion xml/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestBuffer(t *testing.T) {
test.That(t, z.Peek(9) == z.Peek(10), "tenth and eleventh token are EOF")
test.That(t, len(z.buf) == 10, "ten tokens after peeking")

tok = z.Shift()
_ = z.Shift()
tok = z.Shift()
test.That(t, string(tok.Text) == "a", "third token is <a>")
test.That(t, z.pos == 2, "don't change position after peeking")
Expand Down

0 comments on commit f42a598

Please sign in to comment.