unitTest.cpp 497 B

12345678910
  1. Describe(hurdle_jump)
  2. {
  3. It(test1){Assert::That(hurdleJump({1, 2, 3, 4, 5}, 5), Equals(true));}
  4. It(test2){Assert::That(hurdleJump({5, 5, 3, 4, 5}, 3), Equals(false));}
  5. It(test3){Assert::That(hurdleJump({5, 4, 5, 6}, 10), Equals(true));}
  6. It(test4){Assert::That(hurdleJump({1, 2, 1}, 1), Equals(false));}
  7. It(test5){Assert::That(hurdleJump({3, 3, 3}, 4), Equals(true));}
  8. It(test6){Assert::That(hurdleJump({4, 4}, 3), Equals(false));}
  9. It(test7){Assert::That(hurdleJump({}, 4), Equals(true));}
  10. };