shithub: mc

Download patch

ref: a89326287764981cafb8d06c30c8f57e65d9f6fa
parent: 5c7910da4770a4495e90eb5c243993ec778d4e68
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Sep 28 20:37:49 EDT 2015

Don't print an empty failure list.

    If there are no failures, say nothing.

--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -86,7 +86,7 @@
 const printfailed : (f : byte[:][:] -> void) = {failed
 	if failed.len > 10
 		std.put("{} tests failed\n", failed.len)
-	else
+	elif failed.len > 0
 		std.put("FAILURES: ")
 		for t in failed
 			std.put("{} ", t)