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/grammar/symbol/symbol.go | |
| parent | Build and run existing test executables with no actual tests (diff) | |
| download | urubu-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.gz urubu-597687f4aea38ef19d12e0fdaf021fa4faba8f02.tar.xz | |
tests/unit/: Actually run existing tests
Diffstat (limited to 'tests/unit/grammar/symbol/symbol.go')
| -rw-r--r-- | tests/unit/grammar/symbol/symbol.go | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/unit/grammar/symbol/symbol.go b/tests/unit/grammar/symbol/symbol.go index 3e23c2b..6888160 100644 --- a/tests/unit/grammar/symbol/symbol.go +++ b/tests/unit/grammar/symbol/symbol.go @@ -1,6 +1,12 @@ package symbol -import "testing" +import ( + "os" + "testing" + "testing/internal/testdeps" +) + + func TestSymbol(t *testing.T) { tab := NewSymbolTable() @@ -159,4 +165,16 @@ func testSymbolProperty(t *testing.T, sym Symbol, isNil, isStart, isEOF, isNonTe } -func MainTest() {} + +func MainTest() { + tests := []testing.InternalTest{ + { "TestSymbol", TestSymbol }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} |
