- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSmallNegativeInt (0.19 sec)
-
src/reflect/all_test.go
var i any var v Value i = func(j int) int { return j } v = ValueOf(i) if v.Interface().(func(int) int)(j) != j { panic("wrong result") } }) } func TestSmallNegativeInt(t *testing.T) { i := int16(-1) v := ValueOf(i) if v.Int() != -1 { t.Errorf("int16(-1).Int() returned %v", v.Int()) } } func TestIndex(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)