[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 120/255: passing all tests
From: |
Eric Schulte |
Subject: |
[elpa] 120/255: passing all tests |
Date: |
Sun, 16 Mar 2014 01:02:31 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 1f7bb91a359f19517f3cc26ad36d9eb592d29c29
Author: Eric Schulte <address@hidden>
Date: Sun May 27 17:09:49 2012 -0600
passing all tests
---
go-tests.el | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/go-tests.el b/go-tests.el
index b439b1a..83778d5 100644
--- a/go-tests.el
+++ b/go-tests.el
@@ -263,7 +263,9 @@
(make-instance 'sgf
:self (sgf2el-file-to-el ,file)
:index '(0)))))
- (unwind-protect (with-current-buffer ,buffer ,@body)
+ (unwind-protect (with-current-buffer ,buffer
+ (setf (index *back-end*) (list 0))
+ ,@body)
(should (kill-buffer ,buffer))))))
(def-edebug-spec parse-many (file body))
@@ -277,7 +279,7 @@
(go-board-next 4)
(should (not (tree-equal (car *history*) (car (last *history*)))))))
-(defun stone-counts ()
+(defun go-stone-counts ()
(let ((pieces (car *history*)))
(flet ((count-for (color) (length (remove-if-not
(lambda (piece) (equal color (car
piece)))
@@ -286,22 +288,22 @@
(ert-deftest go-singl-stone-capture ()
(with-sgf-display "sgf-files/1-capture.sgf"
- (go-board-next 3) (should (tree-equal (stone-counts) '(2 . 0)))))
+ (go-board-next 3) (should (tree-equal (go-stone-counts) '(2 . 0)))))
(ert-deftest go-remove-dead-stone-ko ()
(with-sgf-display "sgf-files/ko.sgf"
- (should (tree-equal (stone-counts) '(0 . 0))) (go-board-next)
- (should (tree-equal (stone-counts) '(1 . 0))) (go-board-next)
- (should (tree-equal (stone-counts) '(1 . 1))) (go-board-next)
- (should (tree-equal (stone-counts) '(2 . 1))) (go-board-next)
- (should (tree-equal (stone-counts) '(2 . 2))) (go-board-next)
- (should (tree-equal (stone-counts) '(3 . 2))) (go-board-next)
- (should (tree-equal (stone-counts) '(2 . 3))) (go-board-next)
- (should (tree-equal (stone-counts) '(3 . 2))) (go-board-next)
- (should (tree-equal (stone-counts) '(2 . 3)))))
+ (should (tree-equal (go-stone-counts) '(0 . 0))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(1 . 0))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(1 . 1))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(2 . 1))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(2 . 2))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(3 . 2))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(2 . 3))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(3 . 2))) (go-board-next)
+ (should (tree-equal (go-stone-counts) '(2 . 3)))))
(ert-deftest go-two-stone-capture ()
(with-sgf-display "sgf-files/2-capture.sgf"
- (go-board-next 8) (should (tree-equal (stone-counts) '(6 . 0)))))
+ (go-board-next 8) (should (tree-equal (go-stone-counts) '(6 . 0)))))
(provide 'go-tests)
- [elpa] 112/255: renaming go-igs.el to igs.el, (continued)
- [elpa] 112/255: renaming go-igs.el to igs.el, Eric Schulte, 2014/03/15
- [elpa] 104/255: new setf'able generic interface, Eric Schulte, 2014/03/15
- [elpa] 114/255: renaming go-gnugo.el to gnugo.el, Eric Schulte, 2014/03/15
- [elpa] 113/255: uniform igs prefix, Eric Schulte, 2014/03/15
- [elpa] 109/255: uniform sgf prefix, Eric Schulte, 2014/03/15
- [elpa] 111/255: uniform gtp prefix, Eric Schulte, 2014/03/15
- [elpa] 116/255: moving back-ends into a subdirectory, Eric Schulte, 2014/03/15
- [elpa] 117/255: renaming main API file, Eric Schulte, 2014/03/15
- [elpa] 121/255: better introductory commentary, Eric Schulte, 2014/03/15
- [elpa] 122/255: system-level test combining gnugo and sgf, Eric Schulte, 2014/03/15
- [elpa] 120/255: passing all tests,
Eric Schulte <=
- [elpa] 110/255: renaming go-gtp.el to gtp.el, Eric Schulte, 2014/03/15
- [elpa] 125/255: removed dependency on `parse-integer', Eric Schulte, 2014/03/15
- [elpa] 126/255: sketching out passing, Eric Schulte, 2014/03/15
- [elpa] 124/255: highlighting last move and added pass function, Eric Schulte, 2014/03/15
- [elpa] 123/255: working towards savings games in SGF format, Eric Schulte, 2014/03/15
- [elpa] 127/255: documentation tweaks, Eric Schulte, 2014/03/15
- [elpa] 129/255: igs message types from igs.c, Eric Schulte, 2014/03/15
- [elpa] 118/255: cleanup in go.el, Eric Schulte, 2014/03/15
- [elpa] 130/255: adding a file for tracking development notes, Eric Schulte, 2014/03/15
- [elpa] 128/255: starting to flesh out igs support, Eric Schulte, 2014/03/15