type alias fixes for SDL
This commit is contained in:
parent
13c69f5540
commit
f311acc589
10 changed files with 2807 additions and 669 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue