package classes
import "testing"
func TestCheckHTML(t *testing.T) {
cases := []struct {
name string
in string
ok bool
}{
{"empty", "", true},
{"heading and link", `
Cordyceps
Plain link
`, true},
{"table", ``, true},
{"polish date label", `Data: 12 maja 2024
`, true},
{"metadata text", `Some metadata: here
`, true},
{"quotes, apostrophes and nbsp", `Co to jest Lion's Mane?
"superior herb" & inne
`, true},
{"pasted chat transcript", ``, true},
{"script", ``, false},
{"iframe", ``, false},
{"object", `