mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 04:47:45 +08:00
13 lines
212 B
Go
13 lines
212 B
Go
package libp2p
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestPercentage(t *testing.T) {
|
|
require.True(t, abovePercentage(10, 100, 10))
|
|
require.True(t, abovePercentage(100, 100, 99))
|
|
}
|