From 597687f4aea38ef19d12e0fdaf021fa4faba8f02 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 12 Dec 2024 11:04:07 -0300 Subject: tests/unit/: Actually run existing tests --- tests/unit/driver/parser/parser.go | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'tests/unit/driver/parser/parser.go') diff --git a/tests/unit/driver/parser/parser.go b/tests/unit/driver/parser/parser.go index cdf32a3..7ce5d60 100644 --- a/tests/unit/driver/parser/parser.go +++ b/tests/unit/driver/parser/parser.go @@ -2,15 +2,19 @@ package parser import ( "fmt" + "os" "sort" "strings" "testing" + "testing/internal/testdeps" "urubu/grammar" spec "urubu/spec/grammar" "urubu/spec/grammar/parser" ) + + func TestParserWithConflicts(t *testing.T) { tests := []struct { caption string @@ -1972,4 +1976,21 @@ foo } -func MainTest() {} + +func MainTest() { + tests := []testing.InternalTest{ + { "TestParserWithConflicts", TestParserWithConflicts }, + { "TestParserWithLAC", TestParserWithLAC }, + { "TestParser_Parse", TestParser_Parse }, + { "TestParserWithSemanticAction", TestParserWithSemanticAction }, + { "TestParserWithSyntaxErrors", TestParserWithSyntaxErrors }, + { "TestParserWithSyntaxErrorAndExpectedLookahead", TestParserWithSyntaxErrorAndExpectedLookahead }, + } + + deps := testdeps.TestDeps{} + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget{} + examples := []testing.InternalExample {} + m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) + os.Exit(m.Run()) +} -- cgit v1.2.3