aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/spec/test/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/spec/test/test.go')
-rw-r--r--tests/unit/spec/test/test.go20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/unit/spec/test/test.go b/tests/unit/spec/test/test.go
index c6ec8f1..0a77689 100644
--- a/tests/unit/spec/test/test.go
+++ b/tests/unit/spec/test/test.go
@@ -2,11 +2,15 @@ package test
import (
"fmt"
+ "os"
"reflect"
"strings"
"testing"
+ "testing/internal/testdeps"
)
+
+
func TestTree_Format(t *testing.T) {
expected := `(a
(b
@@ -411,4 +415,18 @@ func testTestCase(t *testing.T, expected, actual *TestCase) {
}
-func MainTest() {}
+
+func MainTest() {
+ tests := []testing.InternalTest{
+ { "TestTree_Format", TestTree_Format },
+ { "TestDiffTree", TestDiffTree },
+ { "TestParseTestCase", TestParseTestCase },
+ }
+
+ deps := testdeps.TestDeps{}
+ benchmarks := []testing.InternalBenchmark {}
+ fuzzTargets := []testing.InternalFuzzTarget{}
+ examples := []testing.InternalExample {}
+ m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples)
+ os.Exit(m.Run())
+}