consensus/utils/number_test.go

13 lines
142 B
Go
Raw Normal View History

2022-10-08 18:55:01 +00:00
package utils
import "testing"
func TestNumber(t *testing.T) {
s := "S"
n := uint64(28)
if DecodeBinaryNumber(s) != n {
t.Fail()
}
}