unitTest.cpp 412 B

12345678910
  1. Describe(stack_the_boxes)
  2. {
  3. It(test1){Assert::That(stackBoxes(1), Equals(1));}
  4. It(test2){Assert::That(stackBoxes(2), Equals(4));}
  5. It(test3){Assert::That(stackBoxes(0), Equals(0));}
  6. It(test4){Assert::That(stackBoxes(5), Equals(25));}
  7. It(test5){Assert::That(stackBoxes(27), Equals(729));}
  8. It(test6){Assert::That(stackBoxes(196), Equals(38416));}
  9. It(test7){Assert::That(stackBoxes(512), Equals(262144));}
  10. };