mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
Remove duplicated test
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/navidrome/navidrome/utils/number"
|
"github.com/navidrome/navidrome/utils/number"
|
||||||
"github.com/navidrome/navidrome/utils/random"
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
@@ -15,14 +14,6 @@ func TestNumber(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _ = Describe("number package", func() {
|
var _ = Describe("number package", func() {
|
||||||
Describe("RandomInt64", func() {
|
|
||||||
It("should return a random int64", func() {
|
|
||||||
for i := 0; i < 10000; i++ {
|
|
||||||
Expect(random.Int64(100)).To(BeNumerically("<", 100))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
Describe("ParseInt", func() {
|
Describe("ParseInt", func() {
|
||||||
It("should parse a string into an int", func() {
|
It("should parse a string into an int", func() {
|
||||||
Expect(number.ParseInt[int64]("123")).To(Equal(int64(123)))
|
Expect(number.ParseInt[int64]("123")).To(Equal(int64(123)))
|
||||||
|
|||||||
Reference in New Issue
Block a user