github.com/shadialtarsha/go-pcre@v0.0.0-20220904164957-b4f1834ceecc/pcre_test.go (about) 1 package pcre_test 2 3 import ( 4 "testing" 5 6 "github.com/shadialtarsha/go-pcre" 7 ) 8 9 func TestCompileError(t *testing.T) { 10 r, err := pcre.Compile("(") 11 if err == nil { 12 t.Error("expected error, got nil") 13 } 14 defer r.Close() 15 }