style: gofmt -w
This commit is contained in:
@@ -275,11 +275,11 @@ func TestSlugConstraint(t *testing.T) {
|
||||
{"acme", false},
|
||||
{"a-c-m-e", false},
|
||||
{"a1b2c3", false},
|
||||
{"a", true}, // too short
|
||||
{"-acme", true}, // leading dash
|
||||
{"acme-", true}, // trailing dash
|
||||
{"AcMe", true}, // uppercase
|
||||
{"a_b", true}, // underscore
|
||||
{"a", true}, // too short
|
||||
{"-acme", true}, // leading dash
|
||||
{"acme-", true}, // trailing dash
|
||||
{"AcMe", true}, // uppercase
|
||||
{"a_b", true}, // underscore
|
||||
}
|
||||
for _, c := range cases {
|
||||
_, err := db.Exec(`INSERT INTO tenants (slug, name) VALUES ($1, 'X')`, c.slug)
|
||||
|
||||
Reference in New Issue
Block a user