Improved tests

This commit is contained in:
2023-10-28 12:50:56 +02:00
parent a5ba316319
commit 9a816ec7d7

View File

@ -26,10 +26,10 @@ func TestCLI(t *testing.T) {
{[]string{}, 2},
{[]string{"invalid"}, 2},
{[]string{"system"}, 0},
// {[]string{"build", "non-existing-directory"}, 1},
// {[]string{"build", "examples/hello/hello.q"}, 1},
// {[]string{"build", "examples/hello", "--invalid"}, 2},
// {[]string{"build", "examples/hello", "--dry"}, 0},
{[]string{"build", "non-existing-directory"}, 1},
{[]string{"build", "examples/hello/hello.q"}, 1},
{[]string{"build", "examples/hello", "--dry"}, 0},
{[]string{"build", "examples/hello", "--invalid"}, 2},
}
for _, test := range tests {