unitTest.cpp 247 B

123456
  1. Describe(product_of_all_odds)
  2. {
  3. It(test1){Assert::That(oddProduct({3, 4, 1, 1, 5}), Equals(15));}
  4. It(test2){Assert::That(oddProduct({5, 5, 8, 2, 4, 32}), Equals(25));}
  5. It(test3){Assert::That(oddProduct({1, 2, 1, 2, 1, 2, 1, 2}), Equals(1));}
  6. };