[tor-commits] [goptlib/master] Add a test for TestKeywordIsSafe with unsafe in first position.

dcf at torproject.org dcf at torproject.org
Mon Jun 26 23:50:42 UTC 2017


commit 8838202811d5f532c99efcd4312a18bafad1c84f
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Jun 26 16:47:16 2017 -0700

    Add a test for TestKeywordIsSafe with unsafe in first position.
---
 pt_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pt_test.go b/pt_test.go
index 069647c..f9f4790 100644
--- a/pt_test.go
+++ b/pt_test.go
@@ -53,6 +53,7 @@ func TestKeywordIsSafe(t *testing.T) {
 		{"CMETHOD\x80", false},
 		{"CMETHOD\x81", false},
 		{"CMETHOD\xff", false},
+		{"\xffCMETHOD", false},
 		{"CMÉTHOD", false},
 	}
 





More information about the tor-commits mailing list