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