diff --git a/hatmill_test.go b/hatmill_test.go index 88a02b1..cd80fd9 100644 --- a/hatmill_test.go +++ b/hatmill_test.go @@ -19,12 +19,6 @@ import ( he "gitlab.codemonkeysoftware.net/b/hatmill/element" ) -type NopWriter struct{} - -func (NopWriter) Write(p []byte) (n int, err error) { - return len(p), nil -} - func writeToString(wt io.WriterTo) string { var buf bytes.Buffer _, err := wt.WriteTo(&buf) @@ -58,16 +52,6 @@ var dangerousASCII = gen.UnicodeString(ASCII).SuchThat(func(v interface{}) bool return false }) -func printableASCII() string { - const minPrintable rune = 32 - const maxPrintable rune = 126 - var buf bytes.Buffer - for r := minPrintable; r <= maxPrintable; r++ { - buf.WriteRune(r) - } - return buf.String() -} - func TestText(t *testing.T) { properties := gopter.NewProperties(nil) properties.Property("WriteTo escapes special chars and outputs all others unchanged", prop.ForAll(