ids-svc-product/internal/repository/product_repository_test.go

11 lines
264 B
Go

package repository
import "testing"
func TestEscapeLikeLiteral(t *testing.T) {
input := `100%_off\\bundle`
if got, want := escapeLikeLiteral(input), `100\%\_off\\\\bundle`; got != want {
t.Fatalf("escapeLikeLiteral(%q) = %q, want %q", input, got, want)
}
}