lib/ignores: Use bitmask for result

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3030
This commit is contained in:
Audrius Butkevicius
2016-05-01 15:58:23 +00:00
committed by Jakob Borg
parent 29fa05ae05
commit abb96802cb
2 changed files with 36 additions and 36 deletions

View File

@@ -21,8 +21,8 @@ func TestCache(t *testing.T) {
// Set and check some items
c.set("true", Result{true, true})
c.set("false", Result{false, false})
c.set("true", resultInclude|resultDeletable)
c.set("false", 0)
res, ok = c.get("true")
if !res.IsIgnored() || !res.IsDeletable() || ok != true {