Skip to content

Commit

Permalink
test: add new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jan 13, 2025
1 parent bcb465b commit aa3f5cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions remote/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ func TestTokenizeString(t *testing.T) {
"nested double quotes": {want: []string{"option", "update", "cow", `"a \"b\""`}, input: `option update cow "a \"b\""`},
"one nested quote": {want: []string{`"a\"b"`}, input: `"a\"b"`},

// Whitespaces
"newline in arguments": {want: []string{"option", "update", "cow", "\"a\nb\""}, input: "option update cow \"a\nb\""},
"newline between args": {want: []string{"option", "update", "cow", "a"}, input: "option \n update cow a"},
"different whitespaces": {want: []string{"option", "update", "cow", "a"}, input: "option \n \t update\v\fcow\ra"},

// Compatibility with VIP CLI bugs
"named parameters": {want: []string{"option", "list", `--search="a b"`}, input: `option list --search="a b"`},

Expand Down

0 comments on commit aa3f5cf

Please sign in to comment.