summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-ldap/ldap/filter_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-ldap/ldap/filter_test.go')
-rw-r--r--vendor/github.com/go-ldap/ldap/filter_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/go-ldap/ldap/filter_test.go b/vendor/github.com/go-ldap/ldap/filter_test.go
index ae1b79b0c..2b019ac5d 100644
--- a/vendor/github.com/go-ldap/ldap/filter_test.go
+++ b/vendor/github.com/go-ldap/ldap/filter_test.go
@@ -132,6 +132,12 @@ var testFilters = []compileTest{
expectedErr: "unexpected end of filter",
},
compileTest{
+ filterStr: `((cn=)`,
+ expectedFilter: ``,
+ expectedType: 0,
+ expectedErr: "unexpected end of filter",
+ },
+ compileTest{
filterStr: `(&(objectclass=inetorgperson)(cn=中文))`,
expectedFilter: `(&(objectclass=inetorgperson)(cn=\e4\b8\ad\e6\96\87))`,
expectedType: 0,