changeset 142:1e48315c36fc

Made the test program work with >59 tests.
author Anders Johnsen <skabet@gmail.com>
date Sun, 20 Jul 2008 23:41:53 +0200
parents 85d609399fdf
children d76cc5cad4fc
files tests/run.d
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run.d	Sun Jul 20 23:24:23 2008 +0200
+++ b/tests/run.d	Sun Jul 20 23:41:53 2008 +0200
@@ -72,7 +72,8 @@
     char[60] progressbar = ' ';
     int progress = number*progressbar.length/total_tests;
     progressbar[0 .. progress] = '=';
-    progressbar[progress-1] = '>';
+    if(progress)
+        progressbar[progress-1] = '>';
     Stdout.format("\r{}% - [{}]", 1e2 * number / total_tests, progressbar);
     Stdout.flush();
     //Thread.sleep(0.05);