type alias fixes for SDL

This commit is contained in:
rumpf_a@web.de 2010-03-06 15:59:56 +01:00
commit f311acc589
10 changed files with 2807 additions and 669 deletions

View file

@ -106,6 +106,20 @@ proc `$`(r: TResults): string =
test, expected, given, success.colorBool])
result.add("</table>\n")
proc listResults(reject, compile, run: TResults) =
var s = "<html>"
s.add("<h1>Tests to Reject</h1>\n")
s.add($reject)
s.add("<br /><br /><br /><h1>Tests to Compile</h1>\n")
s.add($compile)
s.add("<br /><br /><br /><h1>Tests to Run</h1>\n")
s.add($run)
s.add("</html>")
var outp: TFile
if open(outp, "testresults.html", fmWrite):
write(outp, )
close(outp)
proc cmpMsgs(r: var TResults, expected, given: TMsg, test: string) =
inc(r.total)
if strip(expected.msg) notin strip(given.msg):