Commit fec491fb authored by Matthew Holt's avatar Matthew Holt

Removed another test that is Windows-specific

We're not trying to test the shlex library; just our wrapper function
parent 794d2711
......@@ -118,28 +118,21 @@ func TestSplitCommandAndArgs(t *testing.T) {
expectedArgs: []string{`arg1 arg1`},
expectedErrContent: ``,
},
// Test case 5 - command with comments
{
input: `command arg1 #comment1 comment2`,
expectedCommand: `command`,
expectedArgs: []string{`arg1`},
expectedErrContent: "",
},
// Test case 6 - command with multiple spaces and tab character
// Test case 5 - command with multiple spaces and tab character
{
input: "command arg1 arg2\targ3",
expectedCommand: `command`,
expectedArgs: []string{`arg1`, `arg2`, "arg3"},
expectedErrContent: "",
},
// Test case 7 - command with unclosed quotes
// Test case 6 - command with unclosed quotes
{
input: `command "arg1 arg2`,
expectedCommand: "",
expectedArgs: nil,
expectedErrContent: parseErrorContent,
},
// Test case 8 - command with unclosed quotes
// Test case 7 - command with unclosed quotes
{
input: `command 'arg1 arg2"`,
expectedCommand: "",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment