/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/updater/util/strings_test.go
17 строк
396 B
Mike Maxim
merge go-updater repo into client (#26126)
05 янв 2024, 20:18
Не верифицирован
05 янв 2024, 20:18
75026c7
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package util import ( "strings" "testing" ) func TestJoinPredicate(t *testing.T) { f := func(s string) bool { return strings.HasPrefix(s, "f") } s := JoinPredicate([]string{"foo", "bar", "faa"}, "-", f) if s != "foo-faa" { t.Errorf("Unexpected output: %s", s) } }