unitTest.cpp 502 B

1234567891011
  1. Describe(magic_date)
  2. {
  3. It(test1){Assert::That(magic("1 1 2011"), Equals(true));}
  4. It(test2){Assert::That(magic("4 1 2001"), Equals(false));}
  5. It(test3){Assert::That(magic("2 4 2008"), Equals(true));}
  6. It(test4){Assert::That(magic("3 3 2009"), Equals(true));}
  7. It(test5){Assert::That(magic("5 2 2010"), Equals(true));}
  8. It(test6){Assert::That(magic("1 2 2011"), Equals(false));}
  9. It(test7){Assert::That(magic("9 2 2011"), Equals(false));}
  10. It(test8){Assert::That(magic("1 4 2011"), Equals(false));}
  11. };