Skip to content

Commit

Permalink
*: check in the fuzz testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchiang committed Jun 20, 2022
1 parent 04437af commit afb36d4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin/
testdata/fuzz/
10 changes: 0 additions & 10 deletions css_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,16 +795,6 @@ func TestSelector(t *testing.T) {
}
}

func TestParseFuzz(t *testing.T) {
strs := []string{
"\xaa",
":rLU((",
}
for _, s := range strs {
Parse(s)
}
}

func TestBadSelector(t *testing.T) {
tests := []struct {
sel string
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go test fuzz v1
string("0")
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go test fuzz v1
string(":rLU((")
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go test fuzz v1
string("\xaa")

0 comments on commit afb36d4

Please sign in to comment.