diff options
Diffstat (limited to 'tests/unit/grammar/symbol')
-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()) +} |