Help talk:Contribute: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎On testing task examples: testing is good!)
Line 5: Line 5:


: Certainly that's the ideal, and it's not a very high ideal either. I prefer to put some output from the task's solution with the code, and it's easier to generate that by solving the task in the first place. (I also ''hate'' to put up wrong solutions anyway...) Maybe we should cook up a template (<tt><nowiki>{{untested|</nowiki></tt>''lang''<tt><nowiki>}}</nowiki></tt> perhaps) to mark the untested solutions so they stand out as needing attention (and they can also be marked for work by the maintenance bot)? –[[User:Dkf|Donal Fellows]] 09:05, 1 December 2009 (UTC)
: Certainly that's the ideal, and it's not a very high ideal either. I prefer to put some output from the task's solution with the code, and it's easier to generate that by solving the task in the first place. (I also ''hate'' to put up wrong solutions anyway...) Maybe we should cook up a template (<tt><nowiki>{{untested|</nowiki></tt>''lang''<tt><nowiki>}}</nowiki></tt> perhaps) to mark the untested solutions so they stand out as needing attention (and they can also be marked for work by the maintenance bot)? –[[User:Dkf|Donal Fellows]] 09:05, 1 December 2009 (UTC)

:: [[Template:Untested|Done]]. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 12:35, 1 December 2009 (UTC)

Revision as of 12:35, 1 December 2009

On testing task examples

What should be the minimum amount of testing done on posted code?

I would like to think that all code was at least run, and produced some answers that are present in other solutions or mentioned in the task description where applicable. I have twice, recently seen code posted and "untested" posted against it. I would hope that the poster was aiming to test their code shortly, and post the result, but it would be good if any code, especially for more than a couple of lines/operators, was tested to at least fulfil the task description, as the poster understands it. What do others think? --Paddy3118 07:35, 1 December 2009 (UTC)

Certainly that's the ideal, and it's not a very high ideal either. I prefer to put some output from the task's solution with the code, and it's easier to generate that by solving the task in the first place. (I also hate to put up wrong solutions anyway...) Maybe we should cook up a template ({{untested|lang}} perhaps) to mark the untested solutions so they stand out as needing attention (and they can also be marked for work by the maintenance bot)? –Donal Fellows 09:05, 1 December 2009 (UTC)
Done. —Underscore (Talk) 12:35, 1 December 2009 (UTC)