aboutsummaryrefslogtreecommitdiff
path: root/compiler/compiler_test.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-12-09 02:38:12 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-12-10 01:50:32 +0900
commitd595194791483a71c5afaff2aa3f4b575a9d22b7 (patch)
tree65477d9fab1db2b9ded5eeda8a14ce0b235718b5 /compiler/compiler_test.go
parentAdd a new DFA compiler that generates DFA from a set of CPTree (diff)
downloadtre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.gz
tre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.xz
Use new parser and DFA compiler
Diffstat (limited to '')
-rw-r--r--compiler/compiler_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/compiler_test.go b/compiler/compiler_test.go
index 456920f..2534d9f 100644
--- a/compiler/compiler_test.go
+++ b/compiler/compiler_test.go
@@ -85,7 +85,7 @@ func TestCompile(t *testing.T) {
if err != nil {
t.Fatalf("%v", err)
}
- clspec, err := Compile(lspec)
+ clspec, err, _ := Compile(lspec)
if tt.Err {
if err == nil {
t.Fatalf("expected an error")
@@ -95,7 +95,7 @@ func TestCompile(t *testing.T) {
}
} else {
if err != nil {
- t.Fatalf("unexpected error")
+ t.Fatalf("unexpected error: %v", err)
}
if clspec == nil {
t.Fatalf("Compile function must return a compiled specification")