/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/libkb/http_test.go
29 строк
508 B
Maxwell Krohn
copyrights on all files
02 ноя 2015, 23:48
02 ноя 2015, 23:48
b859f8f
Код
Авторство
О чём код?
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package libkb import ( "testing" "testing/quick" ) func TestHexEncoding(t *testing.T) { f := func(x uint64) bool { u := UHex{Val: x} s := u.String() for _, c := range s { if c >= '0' && c <= '9' { continue } if c >= 'a' && c <= 'f' { continue } return false } return len(s) == 16 } if err := quick.Check(f, nil); err != nil { t.Error(err) } }