Debian Codegraph @

example/nolexer/nolexer_test.go

raw symbols SCIP
1 package nolexer
2
3 import (
4 "testing"
5
6 "github.com/goccmack/gocc/example/nolexer/parser"
7 "github.com/goccmack/gocc/example/nolexer/scanner"
8 )
9
10 func Test1(t *testing.T) {
11 S := scanner.NewString("hiya world")
12 P := parser.NewParser()
13 if _, e := P.Parse(S); e != nil {
14 t.Error(e.Error())
15 }
16 }
17
18 func Test2(t *testing.T) {
19 S := scanner.NewString("hello world")
20 P := parser.NewParser()
21 if _, e := P.Parse(S); e != nil {
22 t.Error(e.Error())
23 }
24 }