Working on my latest challenge, I realized that I don't know what is the optimal way of providing/formatting the test cases. So the question is, what is the best way for a challenger to provide test cases for a challenge?
- the formatting should be such that if people simply copy and paste the test-case-code-block, it needs minimal handling to be used and tested.
- it should be easy to work with as many languages as possible.
- the format should be easy for humans reading the actual post on PPCG.
How can the total ease be maximized? Should the test cases be
n=3 -> T=1 n=4 -> T=8 n=5 -> T=35 n=6 -> T=110 n=7 -> T=287 n=8 -> T=632 n=9 -> T=1302
with little arrows in between? Or should they be
n=3, T=1 n=4, T=8 n=5, T=35 n=6, T=110 n=7, T=287 n=8, T=632 n=9, T=1302
comma separated? Or should I remove all unnecessary characters and only provide a numeric array delimited by commas, tab, space, or something like this?
3,1 4,8 5,35 6,110 7,287 8,632 9,1302
Or something else entirely?