aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/grammar/lexical/lexical.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/grammar/lexical/lexical.go')
-rw-r--r--tests/unit/grammar/lexical/lexical.go21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/unit/grammar/lexical/lexical.go b/tests/unit/grammar/lexical/lexical.go
index 54cace4..288bd3c 100644
--- a/tests/unit/grammar/lexical/lexical.go
+++ b/tests/unit/grammar/lexical/lexical.go
@@ -3,11 +3,15 @@ package lexical
import (
"encoding/json"
"fmt"
+ "os"
"testing"
+ "testing/internal/testdeps"
spec "urubu/spec/grammar"
)
+
+
func TestLexSpec_Validate(t *testing.T) {
// We expect that the spelling inconsistency error will occur.
spec := &LexSpec{
@@ -338,4 +342,19 @@ func TestCompile(t *testing.T) {
}
-func MainTest() {}
+
+func MainTest() {
+ tests := []testing.InternalTest{
+ { "TestLexSpec_Validate", TestLexSpec_Validate },
+ { "TestSnakeCaseToUpperCamelCase", TestSnakeCaseToUpperCamelCase },
+ { "TestFindSpellingInconsistencies", TestFindSpellingInconsistencies },
+ { "TestCompile", TestCompile },
+ }
+
+ deps := testdeps.TestDeps{}
+ benchmarks := []testing.InternalBenchmark {}
+ fuzzTargets := []testing.InternalFuzzTarget{}
+ examples := []testing.InternalExample {}
+ m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples)
+ os.Exit(m.Run())
+}