This commit is contained in:
Lunny Xiao 2019-11-13 15:12:11 +08:00
parent e59ea8603f
commit d4aee859bf
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 5 deletions

View File

@ -15,7 +15,7 @@ func TestQuoteTo(t *testing.T) {
test := func(t *testing.T, expected string, value string) {
buf := &strings.Builder{}
quoteTo(buf, "[]", value)
realQuoteTo('[', ']', buf, value)
assert.EqualValues(t, expected, buf.String())
}
@ -34,8 +34,4 @@ func TestQuoteTo(t *testing.T) {
test(t, "[myschema].[mytable]", `[myschema].[mytable]`)
test(t, `["myschema].[mytable"]`, `"myschema.mytable"`)
buf := &strings.Builder{}
quoteTo(buf, "", "noquote")
assert.EqualValues(t, "noquote", buf.String())
}