chore(repo): reinitialize repository
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package slug
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNormalize(t *testing.T) {
|
||||
got := Normalize(" Product Prompt V2 / Main ")
|
||||
if got != "product-prompt-v2-main" {
|
||||
t.Fatalf("Normalize() = %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeWithLimit(t *testing.T) {
|
||||
got := NormalizeWithLimit("abcdefghijklmnopqrstuvwxyz", 10)
|
||||
if got != "abcdefghij" {
|
||||
t.Fatalf("NormalizeWithLimit() = %q", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user