RSRFilter test for non empty value

This commit is contained in:
DanB
2016-10-04 12:39:46 +02:00
parent 22177b7519
commit 836994c30b

View File

@@ -350,6 +350,16 @@ func TestRSRFilterPass(t *testing.T) {
if !fltr.Pass("") {
t.Error("Not passing!")
}
fltr, err = NewRSRFilter("!^$") // Non-empty value
if err != nil {
t.Error(err)
}
if !fltr.Pass("CGRateS") {
t.Error("Not passing!")
}
if fltr.Pass("") {
t.Error("Passing!")
}
}
func TestRSRFiltersPass(t *testing.T) {