Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

161 B
Raw Blame
package strkit

import "testing"

func TestSlugify(t *testing.T) {
	if got := Slugify("Hello, World!", 0); got != "hello-world" {
		t.Fatalf("got %q", got)
	}
}