24 lines
No EOL
440 B
Go
24 lines
No EOL
440 B
Go
package tests_test
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
var tests = []testRun{
|
|
{"empty", "", "", 0},
|
|
{"sum-10", "", "", 10},
|
|
{"sum-36", "", "", 36},
|
|
{"hello-3", "", "Hello\nHello\nHello\n", 0},
|
|
{"param-swap", "", "", 3},
|
|
{"script", "", "Hello\n", 0},
|
|
{"math-5", "", "", 5},
|
|
{"math-10", "", "", 10},
|
|
{"math-3", "", "", 3},
|
|
{"math-2", "", "", 2},
|
|
}
|
|
|
|
func TestTests(t *testing.T) {
|
|
for _, test := range tests {
|
|
test.Run(t, test.Name+".q")
|
|
}
|
|
} |