test suite for CSV specification?
i am facing some problem for writing test suite (test cases)for basic CSV specifi开发者_如何转开发cation . i have no idea how to write that? can anyone help?
First read http://en.wikipedia.org/wiki/Comma-separated_values then think of as many evil ways as possible to corrupt the input: too many fields per line, missing field/line delimiters, unbalanced field/line delimiters, inconsistent field/line delimiters and escape characters, etc, etc.
精彩评论