From 96b0b12bc73903779c852b8736cf3fa849e38095 Mon Sep 17 00:00:00 2001 From: sharifelgamal Date: Mon, 26 Mar 2018 14:13:20 -0700 Subject: [PATCH] adding extra test case --- pkg/commands/label_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/commands/label_test.go b/pkg/commands/label_test.go index 02185889e..f997611c3 100644 --- a/pkg/commands/label_test.go +++ b/pkg/commands/label_test.go @@ -43,12 +43,17 @@ func TestUpdateLabels(t *testing.T) { Key: "multiword", Value: "lots\\ of\\ words", }, + { + Key: "backslashes", + Value: "lots\\\\ of\\\\ words", + }, } expectedLabels := map[string]string{ - "foo": "override", - "bar": "baz", - "multiword": "lots of words", + "foo": "override", + "bar": "baz", + "multiword": "lots of words", + "backslashes": "lots\\ of\\ words", } updateLabels(labels, cfg) testutil.CheckErrorAndDeepEqual(t, false, nil, expectedLabels, cfg.Labels)