Help wanted: C/C++/C#/Java Test Code
Posted: Fri Apr 30, 2004 3:08 am
Hi there,
I'm helping out on AStyle, a source code reformatter / pretty printer for C, C++, C#, and Java source code.
That project has, so far, no formal testing - if you change some part of it, you might actually miss the effect it has on how AStyle formats code.
Hence, I am looking for help. The job would be to write up code pieces that are as "complete" as possible: Using all keywords the language has (including ugly stuff like 'goto'), and all the syntactical "uglies" that might confuse a pretty printer: Templates, anonymous classes, classes within classes, line comments nested in block, you name it.
That code does not need to do something meaningful (since it's a pretty printer, not a compiler), but it should be syntactically correct (dito).
I could probably write up test cases myself (except for C# which I know next to nothing about), but usually it is better if someone other than the developer writes the test cases.
I hope that some of you guys here might have some really ugly code sitting somewhere in your closet that you might want to share for this purpose. Note that formatting isn't really important here, I'll "uglify" that myself - the point is that I don't know all the syntactical trickery of all the languages in question.
If you have some such code fragment for me, I'll happily accept your contribution at [email protected].
I'm helping out on AStyle, a source code reformatter / pretty printer for C, C++, C#, and Java source code.
That project has, so far, no formal testing - if you change some part of it, you might actually miss the effect it has on how AStyle formats code.
Hence, I am looking for help. The job would be to write up code pieces that are as "complete" as possible: Using all keywords the language has (including ugly stuff like 'goto'), and all the syntactical "uglies" that might confuse a pretty printer: Templates, anonymous classes, classes within classes, line comments nested in block, you name it.
That code does not need to do something meaningful (since it's a pretty printer, not a compiler), but it should be syntactically correct (dito).
I could probably write up test cases myself (except for C# which I know next to nothing about), but usually it is better if someone other than the developer writes the test cases.
I hope that some of you guys here might have some really ugly code sitting somewhere in your closet that you might want to share for this purpose. Note that formatting isn't really important here, I'll "uglify" that myself - the point is that I don't know all the syntactical trickery of all the languages in question.
If you have some such code fragment for me, I'll happily accept your contribution at [email protected].