Skip to content

Commit

Permalink
Don't print an empty description in build_codestring() in tester module
Browse files Browse the repository at this point in the history
  • Loading branch information
ladc committed Feb 27, 2016
1 parent 8859058 commit 16b3293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ end
local function build_codestring(test)
return tconcat({
"--- ", test.name,
"\n--", tconcat(test.description,"\n--"), "\n",
#test.description>0 and "\n--" or "",
tconcat(test.description,"\n--"), "\n",
tconcat(test.code,"\n")
})
end
Expand Down

0 comments on commit 16b3293

Please sign in to comment.