@@ -91,9 +91,9 @@ func Test_Permutation_determinism(t *testing.T) {
9191
9292 assertar := assert .New (t )
9393
94- assertar .Equal ([]int {3 , 2 , 4 , 1 , 0 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 0 )))
95- assertar .Equal ([]int {0 , 4 , 2 , 1 , 3 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 1 )))
96- assertar .Equal ([]int {3 , 4 , 2 , 1 , 0 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 2 )))
97- assertar .Equal ([]int {4 , 2 , 1 , 3 , 0 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 3 )))
98- assertar .Equal ([]int {1 , 4 }, WeightedPermutation (len (weightsArr )/ 2 , weightsArr , hashOf (hash.Hash {}, 4 )))
94+ assertar .Equal ([]int {4 , 0 , 1 , 2 , 3 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 0 )))
95+ assertar .Equal ([]int {2 , 4 , 3 , 1 , 0 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 1 )))
96+ assertar .Equal ([]int {4 , 2 , 3 , 1 , 0 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 2 )))
97+ assertar .Equal ([]int {0 , 2 , 1 , 3 , 4 }, WeightedPermutation (len (weightsArr ), weightsArr , hashOf (hash.Hash {}, 3 )))
98+ assertar .Equal ([]int {1 , 2 }, WeightedPermutation (len (weightsArr )/ 2 , weightsArr , hashOf (hash.Hash {}, 4 )))
9999}
0 commit comments