Removed redundant test

This commit is contained in:
Brandon Dyck 2019-08-31 06:59:50 -06:00
parent 03a06bf9a5
commit 88e811eefb

View File

@ -106,15 +106,7 @@ func TestAttrib(t *testing.T) {
nonEmptyAlphaString,
))
properties.Property("writes key=value when value is not empty", prop.ForAll(
func(attrib hatmill.Attrib) bool {
expected := fmt.Sprintf("%s='%s'", attrib.Key, attrib.Value)
return checkWrite(attrib, expected)
},
attribGen(nonEmptyAlphaString),
))
properties.Property("WriteTo escapes attribute value", prop.ForAll(
properties.Property("writes key=value with escaped value when value is not empty", prop.ForAll(
func(attrib hatmill.Attrib) bool {
expected := fmt.Sprintf("%s='%s'", attrib.Key, html.EscapeString(attrib.Value))
return checkWrite(attrib, expected)