unitTest.cpp 294 B

12345678
  1. Describe(length_of_string)
  2. {
  3. It(test1){Assert::That(length("shipment"), Equals(8));}
  4. It(test2){Assert::That(length("apple"), Equals(5));}
  5. It(test3){Assert::That(length("make"), Equals(4));}
  6. It(test4){Assert::That(length("a"), Equals(1));}
  7. It(test5){Assert::That(length(""), Equals(0));}
  8. };