package main import "testing" func TestTruncate(t *testing.T) { result := truncate("Ahoj světe", 5) expected := "Ahoj..." if result != expected { t.Errorf("Očekáváno %q, ale dostali jsme %q", expected, result) } }