diff options
author | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:22:55 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:22:55 +0100 |
commit | 2eea0c0a703e32b904741d52c9e2c9ae836c14b0 (patch) | |
tree | 10820142494033c3d3297249ab31efe0176aec77 /filter_test.go | |
parent | Short writes don't happen without an error so don't loop (diff) | |
download | ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.gz ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.bz2 ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.lz ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.xz ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.tar.zst ldap-2eea0c0a703e32b904741d52c9e2c9ae836c14b0.zip |
Diffstat (limited to 'filter_test.go')
-rw-r--r-- | filter_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter_test.go b/filter_test.go index 70f5aa3..1df4814 100644 --- a/filter_test.go +++ b/filter_test.go @@ -31,13 +31,13 @@ func TestFilter(t *testing.T) { for _, i := range testFilters { filter, err := CompileFilter(i.filterStr) if err != nil { - t.Errorf("Problem compiling %s - %s", i.filterStr, err.String()) + 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)]) } else { o, err := DecompileFilter(filter) if err != nil { - t.Errorf("Problem compiling %s - %s", i.filterStr, err.String()) + t.Errorf("Problem compiling %s - %s", i.filterStr, err.Error()) } else if i.filterStr != o { t.Errorf("%q expected, got %q", i.filterStr, o) } |