summaryrefslogtreecommitdiffstats
path: root/filter_test.go
diff options
context:
space:
mode:
authorVincent Vanackere <vincent.vanackere@gmail.com>2014-08-01 22:14:03 +0200
committerVincent Vanackere <vincent.vanackere@gmail.com>2014-08-01 22:14:03 +0200
commit0e043b3393b5bd9027c702fe819d4da112f52227 (patch)
tree7ad918437fdd9fbe0d3fdb6f24ed743dcb321566 /filter_test.go
parentfilter_test : rewrite encode/decode tests to be table-driven (diff)
downloadldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar.gz
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar.bz2
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar.lz
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar.xz
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.tar.zst
ldap-0e043b3393b5bd9027c702fe819d4da112f52227.zip
Diffstat (limited to 'filter_test.go')
-rw-r--r--filter_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter_test.go b/filter_test.go
index a771cff..baecab9 100644
--- a/filter_test.go
+++ b/filter_test.go
@@ -9,7 +9,7 @@ import (
type compileTest struct {
filterStr string
- filterType int
+ filterType uint8
}
var testFilters = []compileTest{
@@ -34,7 +34,7 @@ func TestFilter(t *testing.T) {
if err != nil {
t.Errorf("Problem compiling %s - %s", i.filterStr, err.Error())
} else if filter.Tag != uint8(i.filterType) {
- t.Errorf("%q Expected %q got %q", i.filterStr, FilterMap[uint64(i.filterType)], FilterMap[uint64(filter.Tag)])
+ t.Errorf("%q Expected %q got %q", i.filterStr, filterMap[i.filterType], filterMap[filter.Tag])
} else {
o, err := DecompileFilter(filter)
if err != nil {