This commit is contained in:
parent
009472e6a8
commit
a64b2d6ec3
3 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,7 @@ func TestExec(t *testing.T) {
|
|||
assert.Equal(t, cli.Exec([]string{"build", "../../examples/hello", "--dry", "--os", "windows", "--arch", "x86"}), 0)
|
||||
assert.Equal(t, cli.Exec([]string{"help"}), 0)
|
||||
assert.Equal(t, cli.Exec([]string{"run", "../../examples/hello"}), 0)
|
||||
assert.Equal(t, cli.Exec([]string{"../../examples/script/script.q"}), 0)
|
||||
assert.Equal(t, cli.Exec([]string{"../../tests/script.q"}), 0)
|
||||
}
|
||||
|
||||
func TestExecErrors(t *testing.T) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
)
|
||||
|
||||
var tests = []testRun{
|
||||
{"script", "", "Hello\n", 0},
|
||||
{"sum", "", "", 10},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue