summaryrefslogtreecommitdiff
path: root/chess-test.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-01 23:20:15 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-01 23:20:15 -0400
commit61df68cdb3ee9fed7e06db128b057dc4c9fccd0a (patch)
treec956686124004c4b3ff86a32b16cd3fdda097c15 /chess-test.el
parente4e4d873613a831e88c6fa8a96ccec262c8950f6 (diff)
The 'start' parameter passed in is now a 0-based index, like what is expected
by chess-database.el.
Diffstat (limited to 'chess-test.el')
-rw-r--r--chess-test.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/chess-test.el b/chess-test.el
index 8df18a9..77fbc6d 100644
--- a/chess-test.el
+++ b/chess-test.el
@@ -25,9 +25,7 @@
(message "Running validation suite...")
(let* ((db-count (chess-database-count database))
(ply-count 0)
- (index (if start
- (1- start)
- 0))
+ (index (or start 0))
(last-index (if (and count (> count 0))
(min db-count (+ index count))
db-count))