- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBitLen (0.11 sec)
-
src/go/constant/value_test.go
} } var bitLenTests = []struct { val int64 want int }{ {0, 0}, {1, 1}, {-16, 5}, {1 << 61, 62}, {1 << 62, 63}, {-1 << 62, 63}, {-1 << 63, 64}, } func TestBitLen(t *testing.T) { for _, test := range bitLenTests { if got := BitLen(MakeInt64(test.val)); got != test.want { t.Errorf("%v: got %v, want %v", test.val, got, test.want) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0)