unitTest.cpp 416 B

1234567
  1. Describe(odd_up_even_down)
  2. {
  3. It(T1){Assert::That(transform({1, 2, 3, 4, 5}), Equals(std::vector<int>({2, 1, 4, 3, 6})));}
  4. It(T2){Assert::That(transform({3, 3, 4, 3}), Equals(std::vector<int>({4, 4, 3, 4})));}
  5. It(T3){Assert::That(transform({2, 2, 0, 8, 10}), Equals(std::vector<int>({1, 1, -1, 7, 9})));}
  6. It(T4){Assert::That(transform({9, 13, 15, 5, 2, 11}), Equals(std::vector<int>({10, 14, 16, 6, 1, 12})));}
  7. };