unitTest.cpp 739 B

1234567891011121314
  1. Describe(tests)
  2. {
  3. It(test1){Assert::That(strongPassword("#Edabit"), Equals(1));}
  4. It(test2){Assert::That(strongPassword("Cr3ateAStr0ng1"), Equals(1));}
  5. It(test3){Assert::That(strongPassword("CreateAStrongOne"), Equals(2));}
  6. It(test4){Assert::That(strongPassword("willthispass"), Equals(3));}
  7. It(test5){Assert::That(strongPassword("w1llth!spass?"), Equals(1));}
  8. It(test6){Assert::That(strongPassword("W1llth!spass?"), Equals(0));}
  9. It(test7){Assert::That(strongPassword("1sth!"), Equals(1));}
  10. It(test8){Assert::That(strongPassword("sth!"), Equals(2));}
  11. It(test9){Assert::That(strongPassword("bd"), Equals(4));}
  12. It(test10){Assert::That(strongPassword("d"), Equals(5));}
  13. It(test11){Assert::That(strongPassword("[?"), Equals(4));}
  14. };