mirror of
https://ids-dev.idsbuybuybuy.com/ids-ecommerce/ids-svc-product.git
synced 2026-11-29 16:57:41 +08:00
11 lines
264 B
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)
|
|
}
|
|
}
|