Files
olcrtc/internal/names/names_test.go
T
2026-04-10 16:03:42 +03:00

20 lines
336 B
Go

package names
import "testing"
func TestGenerateFallsBackWhenListsAreEmpty(t *testing.T) {
oldFirst := firstNames
oldLast := lastNames
defer func() {
firstNames = oldFirst
lastNames = oldLast
}()
firstNames = nil
lastNames = nil
if got := Generate(); got == "" {
t.Fatal("Generate returned an empty display name")
}
}