Removed redundant test
This commit is contained in:
parent
03a06bf9a5
commit
88e811eefb
@ -106,15 +106,7 @@ func TestAttrib(t *testing.T) {
|
|||||||
nonEmptyAlphaString,
|
nonEmptyAlphaString,
|
||||||
))
|
))
|
||||||
|
|
||||||
properties.Property("writes key=value when value is not empty", 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, attrib.Value)
|
|
||||||
return checkWrite(attrib, expected)
|
|
||||||
},
|
|
||||||
attribGen(nonEmptyAlphaString),
|
|
||||||
))
|
|
||||||
|
|
||||||
properties.Property("WriteTo escapes attribute value", prop.ForAll(
|
|
||||||
func(attrib hatmill.Attrib) bool {
|
func(attrib hatmill.Attrib) bool {
|
||||||
expected := fmt.Sprintf("%s='%s'", attrib.Key, html.EscapeString(attrib.Value))
|
expected := fmt.Sprintf("%s='%s'", attrib.Key, html.EscapeString(attrib.Value))
|
||||||
return checkWrite(attrib, expected)
|
return checkWrite(attrib, expected)
|
||||||
|
Loading…
Reference in New Issue
Block a user