diff options
Diffstat (limited to 'tests/unit/utf8/utf8.go')
-rw-r--r-- | tests/unit/utf8/utf8.go | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/unit/utf8/utf8.go b/tests/unit/utf8/utf8.go index 278ed3e..25d5df7 100644 --- a/tests/unit/utf8/utf8.go +++ b/tests/unit/utf8/utf8.go @@ -2,9 +2,13 @@ package utf8 import ( "fmt" + "os" "testing" + "testing/internal/testdeps" ) + + func TestGenCharBlocks_WellFormed(t *testing.T) { cBlk := func(from []byte, to []byte) *CharBlock { return &CharBlock{ @@ -181,4 +185,17 @@ func TestGenCharBlocks_IllFormed(t *testing.T) { } -func MainTest() {} + +func MainTest() { + tests := []testing.InternalTest{ + { "TestGenCharBlocks_WellFormed", TestGenCharBlocks_WellFormed }, + { "TestGenCharBlocks_IllFormed", TestGenCharBlocks_IllFormed }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |