unitTest.cpp 649 B

123456789101112
  1. Describe(longest_zero_tests)
  2. {
  3. It(test1){Assert::That(longestZero("01100001011000"), Equals("0000"));}
  4. It(test2){Assert::That(longestZero("100100100"), Equals("00"));}
  5. It(test3){Assert::That(longestZero("111101"), Equals("0"));}
  6. It(test4){Assert::That(longestZero("1000000000011101"), Equals("0000000000"));}
  7. It(test5){Assert::That(longestZero("100001110000100000"), Equals("00000"));}
  8. It(test6){Assert::That(longestZero("101001101"), Equals("00"));}
  9. It(test7){Assert::That(longestZero("101010101"), Equals("0"));}
  10. It(test8){Assert::That(longestZero("1001001"), Equals("00"));}
  11. It(test9){Assert::That(longestZero("111111"), Equals(""));}
  12. };