unitTest.cpp 238 B

12345678910111213141516
  1. bool vulnerability()
  2. {
  3. bool vuln = false;
  4. if (input.size() == 0)
  5. return false;
  6. printf(input.c_str(), &vuln);
  7. return vuln > 0;
  8. }
  9. Describe(return_true)
  10. {
  11. It(test1)
  12. {
  13. Assert::That(vulnerability(), Equals(true));
  14. }
  15. };