Added more tests

This commit is contained in:
Eduard Urbach 2024-07-06 13:06:39 +02:00
parent 6db1f1af69
commit fca944d26c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 15 additions and 11 deletions

View file

@ -16,6 +16,7 @@ func TestCLI(t *testing.T) {
tests := []cliTest{
{[]string{}, 2},
{[]string{"invalid"}, 2},
{[]string{"help"}, 0},
{[]string{"system"}, 0},
{[]string{"build", "invalid-directory"}, 1},
{[]string{"build", "--invalid-parameter"}, 2},
@ -23,6 +24,7 @@ func TestCLI(t *testing.T) {
{[]string{"build", "../../examples/hello", "--dry"}, 0},
{[]string{"build", "../../examples/hello", "--dry", "--verbose"}, 0},
{[]string{"build", "../../examples/hello/hello.q", "--dry"}, 0},
{[]string{"build", "../../examples/hello"}, 0},
}
for _, test := range tests {