unitTest.cpp 596 B

123456789101112
  1. Describe(tests)
  2. {
  3. It(test1){Assert::That(isNarcissistic(6), Equals(true));}
  4. It(test2){Assert::That(isNarcissistic(1741725), Equals(true));}
  5. It(test3){Assert::That(isNarcissistic(66), Equals(false));}
  6. It(test4){Assert::That(isNarcissistic(65239), Equals(false));}
  7. It(test5){Assert::That(isNarcissistic(886243), Equals(false));}
  8. It(test6){Assert::That(isNarcissistic(92727), Equals(true));}
  9. It(test7){Assert::That(isNarcissistic(472335975), Equals(true));}
  10. It(test8){Assert::That(isNarcissistic(42300981), Equals(false));}
  11. It(test9){Assert::That(isNarcissistic(548834), Equals(true));}
  12. };