diff options
author | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-12 11:04:07 -0300 |
commit | 597687f4aea38ef19d12e0fdaf021fa4faba8f02 (patch) | |
tree | e65ffaa7c9fc4f39826c36825e73eb81765add16 /tests/unit/utf8/utf8.go | |
parent | Build and run existing test executables with no actual tests (diff) | |
download | cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.gz cotia-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.xz |
tests/unit/: Actually run existing tests
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()) +} |