unitTest.cpp 532 B

12345678910
  1. Describe(tests)
  2. {
  3. It(test1){Assert::That(convertTime("07:05:45PM"), Equals("19:05:45"));}
  4. It(test2){Assert::That(convertTime("12:40:22AM"), Equals("00:40:22"));}
  5. It(test3){Assert::That(convertTime("12:45:54PM"), Equals("12:45:54"));}
  6. It(test4){Assert::That(convertTime("05:32:33PM"), Equals("17:32:33"));}
  7. It(test5){Assert::That(convertTime("11:59:59PM"), Equals("23:59:59"));}
  8. It(test6){Assert::That(convertTime("11:59:59AM"), Equals("11:59:59"));}
  9. It(test7){Assert::That(convertTime("06:00:19AM"), Equals("06:00:19"));}
  10. };