commit 1037d918625558ace0dbc3cb9318c998dde2011f
Author: David Fifield <[email protected]>
Date:   Tue Jun 20 07:37:27 2017 -0700

    Add tests for multiple and trailing '=' in client/server args.
---
 args_test.go | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/args_test.go b/args_test.go
index 134ac31..ff8a950 100644
--- a/args_test.go
+++ b/args_test.go
@@ -139,6 +139,10 @@ func TestParseClientParameters(t *testing.T) {
                        Args{"a": []string{"b=c"}},
                },
                {
+                       "a=bc==",
+                       Args{"a": []string{"bc=="}},
+               },
+               {
                        "key=a\nb",
                        Args{"key": []string{"a\nb"}},
                },
@@ -259,6 +263,18 @@ func TestParseServerTransportOptions(t *testing.T) {
                        },
                },
                {
+                       "t:k=v=v",
+                       map[string]Args{
+                               "t": {"k": []string{"v=v"}},
+                       },
+               },
+               {
+                       "t:k=vv==",
+                       map[string]Args{
+                               "t": {"k": []string{"vv=="}},
+                       },
+               },
+               {
                        "t1:k=v1;t2:k=v2;t1:k=v3",
                        map[string]Args{
                                "t1": {"k": []string{"v1", "v3"}},

_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to