added some methods
This commit is contained in:
@@ -8,15 +8,6 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
const (
|
||||
MinInt24 = -1 << 23 // -8388608
|
||||
MaxInt24 = 1<<23 - 1 // 8388607
|
||||
MinInt48 = -1 << 47 // -140737488355328
|
||||
MaxInt48 = 1<<47 - 1 // 140737488355327
|
||||
MaxUint24 = 1<<24 - 1 // 16777215
|
||||
MaxUint48 = 1<<48 - 1 // 281474976710655
|
||||
)
|
||||
|
||||
func TestContants(t *testing.T) {
|
||||
fmt.Println(MinInt24 == -8388608)
|
||||
fmt.Println(MaxInt24 == 8388607)
|
||||
|
||||
Reference in New Issue
Block a user