From 48add0f293a6b668aab29246761b80066a707890 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 7 Dec 2019 16:48:23 -0300 Subject: [PATCH] Write more args tests --- internal/args/args_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/internal/args/args_test.go b/internal/args/args_test.go index 7357acdd..8dc96e4c 100644 --- a/internal/args/args_test.go +++ b/internal/args/args_test.go @@ -64,6 +64,18 @@ func TestArgs(t *testing.T) { "FOO": {Static: "bar"}, }, }, + { + Args: nil, + ExpectedCalls: []taskfile.Call{ + {Task: "default"}, + }, + }, + { + Args: []string{}, + ExpectedCalls: []taskfile.Call{ + {Task: "default"}, + }, + }, { Args: []string{"FOO=bar", "BAR=baz"}, ExpectedCalls: []taskfile.Call{