unitTest.cpp 438 B

123456789
  1. Describe(includes_element_tests)
  2. {
  3. It(test1){Assert::That(check({1, 2, 3, 4, 5}, 3), Equals(true));}
  4. It(test2){Assert::That(check({1, 1, 2, 1, 1}, 3), Equals(false));}
  5. It(test3){Assert::That(check({1, 1, 2, 1, 5, 4, 7}, 7), Equals(true));}
  6. It(test4){Assert::That(check({1, 1, 2, 1, 5, 4, 7}, 8), Equals(false));}
  7. It(test5){Assert::That(check({5, 5, 5, 6}, 5), Equals(true));}
  8. It(test6){Assert::That(check({}, 5), Equals(false));}
  9. };