15 lines
256 B
Go
15 lines
256 B
Go
package store
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestContainsCi(t *testing.T) {
|
|
if ContainsCi("foo bar", "BaR") != true {
|
|
t.Error("An unexpected error occurred.")
|
|
}
|
|
if ContainsCi("Luxembourg Online SA", "Goo") == true {
|
|
t.Error("Should ne no match")
|
|
}
|
|
}
|