Add "like" filter comparator

This commit is contained in:
kolaente 2020-12-19 13:56:55 +01:00
parent b2e4fde63a
commit 90817b6dae
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
8 changed files with 43 additions and 7 deletions

View file

@ -858,6 +858,27 @@ func TestTaskCollection_ReadAll(t *testing.T) {
// Task 34 is also a favorite, but on a list user 1 has no access to.
},
},
{
name: "filtered with like",
fields: fields{
FilterBy: []string{"title"},
FilterValue: []string{"with"},
FilterComparator: []string{"like"},
},
args: defaultArgs,
want: []*Task{
task7,
task8,
task9,
task27,
task28,
task29,
task30,
task31,
task33,
},
wantErr: false,
},
}
for _, tt := range tests {