Fixed cli test
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-07-05 23:40:56 +02:00
parent 05d1aa41c6
commit e9364f5801
Signed by: akyoto
GPG key ID: 49226B848C78F6C8

View file

@ -11,6 +11,7 @@ func TestExec(t *testing.T) {
assert.Equal(t, cli.Exec(nil), 2)
assert.Equal(t, cli.Exec([]string{"_"}), 2)
assert.Equal(t, cli.Exec([]string{"build"}), 1)
assert.Equal(t, cli.Exec([]string{"run"}), 1)
assert.Equal(t, cli.Exec([]string{"build", "--invalid-parameter"}), 2)
assert.Equal(t, cli.Exec([]string{"build", "../../examples/hello", "--invalid-parameter"}), 2)
assert.Equal(t, cli.Exec([]string{"build", "../../examples/hello", "--dry"}), 0)
@ -21,5 +22,4 @@ func TestExec(t *testing.T) {
assert.Equal(t, cli.Exec([]string{"build", "../../examples/hello", "--dry", "--arch", "x86"}), 0)
assert.Equal(t, cli.Exec([]string{"build", "../../examples/hello/hello.q", "--dry"}), 0)
assert.Equal(t, cli.Exec([]string{"help"}), 0)
assert.Equal(t, cli.Exec([]string{"run"}), 0)
}