[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [goptlib/master] Add a test that Args.Get returns "" if no value.



commit 80022e67a0cb19d9bd6b050c41c8932f5a40d22b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Fri Jan 31 14:20:16 2014 -0800

    Add a test that Args.Get returns "" if no value.
---
 args_test.go |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/args_test.go b/args_test.go
index daf967e..0a034c0 100644
--- a/args_test.go
+++ b/args_test.go
@@ -45,6 +45,9 @@ func TestArgsGet(t *testing.T) {
 	if ok {
 		t.Errorf("Unexpected Get success for %q", "a")
 	}
+	if v != "" {
+		t.Errorf("Get failure returned other than %q: %q", "", v)
+	}
 	v, ok = args.Get("b")
 	if !ok {
 		t.Errorf("Unexpected Get failure for %q", "b")

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits