Files
EdgeAPI/internal/utils/sizes/sizes_test.go

19 lines
405 B
Go
Raw Normal View History

2024-05-17 18:27:26 +08:00
// Copyright 2022 GoEdge CDN goedge.cdn@gmail.com. All rights reserved.
2022-04-10 15:57:36 +08:00
package sizes_test
import (
2024-07-27 14:15:25 +08:00
"testing"
2022-05-08 19:33:17 +08:00
"github.com/TeaOSLab/EdgeAPI/internal/utils/sizes"
2022-04-10 15:57:36 +08:00
"github.com/iwind/TeaGo/assert"
)
func TestSizes(t *testing.T) {
var a = assert.NewAssertion(t)
a.IsTrue(sizes.K == 1024)
a.IsTrue(sizes.M == 1024*1024)
a.IsTrue(sizes.G == 1024*1024*1024)
a.IsTrue(sizes.T == 1024*1024*1024*1024)
}