MCPcopy Create free account
hub / github.com/ethstorage/es-node / TestSortBigIntSlice

Function TestSortBigIntSlice

cmd/es-node/utils_test.go:101–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

99}
100
101func 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}

Callers

nothing calls this directly

Calls 1

sortBigIntSliceFunction · 0.85

Tested by

no test coverage detected