@@ -19,7 +19,7 @@ TEST_CASE("shuffled: iterates through a vector in shuffled order", "[shuffled]")
1919 Vec ns = {4 , 0 , 5 , 1 , 6 , 7 , 9 , 3 , 2 , 8 };
2020 auto s = shuffled (ns);
2121 Vec v (std::begin (s), std::end (s));
22- Vec vc = {2 , 7 , 5 , 9 , 8 , 6 , 3 , 1 , 0 , 4 };
22+ Vec vc = {2 , 9 , 8 , 6 , 7 , 5 , 3 , 1 , 0 , 4 };
2323 REQUIRE (v == vc);
2424}
2525
@@ -41,27 +41,27 @@ TEST_CASE("shuffled: restore iteration through a vector in shuffled order "
4141
4242 // overflow - same as default
4343 Vec v10 (s.restore (10 ), std::end (s));
44- Vec vc10 = {2 , 7 , 5 , 9 , 8 , 6 , 3 , 1 , 0 , 4 };
44+ Vec vc10 = {2 , 9 , 8 , 6 , 7 , 5 , 3 , 1 , 0 , 4 };
4545 REQUIRE (v10 == vc10);
4646
47- Vec v1 (s.restore (5 ), std::end (s));
48- Vec vc1 = {7 , 5 , 9 , 8 , 6 , 3 , 1 , 0 , 4 };
47+ Vec v1 (s.restore (6 ), std::end (s));
48+ Vec vc1 = {9 , 8 , 6 , 7 , 5 , 3 , 1 , 0 , 4 };
4949 REQUIRE (v1 == vc1);
5050
51- Vec v2 (s.restore (2 ), std::end (s));
52- Vec vc2 = {5 , 9 , 8 , 6 , 3 , 1 , 0 , 4 };
51+ Vec v2 (s.restore (9 ), std::end (s));
52+ Vec vc2 = {8 , 6 , 7 , 5 , 3 , 1 , 0 , 4 };
5353 REQUIRE (v2 == vc2);
5454
55- Vec v3 (s.restore (6 ), std::end (s));
56- Vec vc3 = {9 , 8 , 6 , 3 , 1 , 0 , 4 };
55+ Vec v3 (s.restore (4 ), std::end (s));
56+ Vec vc3 = {6 , 7 , 5 , 3 , 1 , 0 , 4 };
5757 REQUIRE (v3 == vc3);
5858
59- Vec v4 (s.restore (9 ), std::end (s));
60- Vec vc4 = {8 , 6 , 3 , 1 , 0 , 4 };
59+ Vec v4 (s.restore (5 ), std::end (s));
60+ Vec vc4 = {7 , 5 , 3 , 1 , 0 , 4 };
6161 REQUIRE (v4 == vc4);
6262
63- Vec v5 (s.restore (4 ), std::end (s));
64- Vec vc5 = {6 , 3 , 1 , 0 , 4 };
63+ Vec v5 (s.restore (2 ), std::end (s));
64+ Vec vc5 = {5 , 3 , 1 , 0 , 4 };
6565 REQUIRE (v5 == vc5);
6666
6767 Vec v6 (s.restore (7 ), std::end (s));
@@ -96,7 +96,7 @@ TEST_CASE("shuffled: iterates through a vector in shuffled order with non"
9696 Vec ns = {4 , 0 , 5 , 1 , 6 , 7 , 9 , 3 , 2 , 8 };
9797 auto s = shuffled (ns, 1234 );
9898 Vec v (std::begin (s), std::end (s));
99- Vec vc = {9 , 8 , 6 , 3 , 1 , 0 , 4 , 2 , 7 , 5 };
99+ Vec vc = {4 , 2 , 9 , 8 , 6 , 7 , 5 , 3 , 1 , 0 };
100100 REQUIRE (v == vc);
101101}
102102
0 commit comments