Question: How do people generate test cases?

Revision en1, by Mohammed-Shoaib, 2020-05-31 08:33:41

I was working on a library called WhatsAlgo and needed 2 types of functionality:

  • generator: generates a bunch of test cases and creates one or more input files
  • validator: takes the solution file (could be in C++, Python, or other languages) and verifies it on each of the generated input files

This got me wondering, how do people generate test cases? I came across 2 popular platforms:

Are these the platforms used by the testers on CodeForces?

What about other platforms like AtCoder, HackerRank, LeetCode, or even Google?

I'd appreciate it if someone shed some light on this as it would help me a lot. Thank you all for your help!

Tags #testcase, #generator, #validator, #question

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mohammed-Shoaib 2020-05-31 08:33:41 1048 Initial revision (published)