package html // import "github.com/tdewolff/minify/html" import ( "bytes" "fmt" "io" "io/ioutil" "net/url" "os" "regexp" "testing" "github.com/tdewolff/minify" "github.com/tdewolff/minify/css" "github.com/tdewolff/minify/js" "github.com/tdewolff/minify/json" "github.com/tdewolff/minify/svg" "github.com/tdewolff/minify/xml" "github.com/tdewolff/test" ) func TestHTML(t *testing.T) { htmlTests := []struct { html string expected string }{ {`html`, `html`}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {`x`, `x`}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {`&`, `&`}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {`
`, `
`}, // increase coverage {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {``, ``}, {`x`, `x`}, {`

`, `

`}, {`

`, ``}, {`

`, `

`}, {`

x`, `

x`}, {``, ``}, {`