(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestSortBigIntSlice(t *testing.T) { |
| 102 | slice := []*big.Int{ |
| 103 | big.NewInt(12345678901234567), |
| 104 | big.NewInt(11111111111111111), |
| 105 | big.NewInt(98765432109543210), |
| 106 | big.NewInt(55555555555555555), |
| 107 | } |
| 108 | result := sortBigIntSlice(slice) |
| 109 | expected := []int{1, 0, 3, 2} |
| 110 | if !reflect.DeepEqual(result, expected) { |
| 111 | t.Errorf("Expected %v, but got %v", expected, result) |
| 112 | } |
| 113 | } |
nothing calls this directly
no test coverage detected