[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 119/255: test cleanup
From: |
Eric Schulte |
Subject: |
[elpa] 119/255: test cleanup |
Date: |
Sun, 16 Mar 2014 01:02:31 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit a1b2857e2d387c1a0331d5e22a46db62e6c09bb2
Author: Eric Schulte <address@hidden>
Date: Sun May 27 16:54:34 2012 -0600
test cleanup
---
back-ends/sgf.el | 2 +-
go-tests.el | 9 ++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/back-ends/sgf.el b/back-ends/sgf.el
index 4a0c6e0..9b7cc04 100644
--- a/back-ends/sgf.el
+++ b/back-ends/sgf.el
@@ -58,7 +58,7 @@
;;; Class
(defclass sgf nil
((self :initarg :self :accessor self :initform nil)
- (index :initarg :index :accessor index :initform '(0)))
+ (index :initarg :index :accessor index :initform (list 0)))
"Class for the SGF back end.")
(defun sgf-from-file (file)
diff --git a/go-tests.el b/go-tests.el
index 8789980..b439b1a 100644
--- a/go-tests.el
+++ b/go-tests.el
@@ -227,7 +227,7 @@
(with-gnugo
(should (string= b1 (gtp-command *gnugo* "showboard")))
(should (string= "" (gtp-command *gnugo* "black A1")))
- (should (string= "" (go-move *gnugo* '(:B :pos . (0 . 1)))))
+ (should (string= "" (setf (go-move *gnugo*) '(:B :pos . (0 . 1)))))
(should (string= b2 (gtp-command *gnugo* "showboard"))))))
@@ -237,8 +237,7 @@
`(let (*sgf*)
(progn
(setf *sgf* (make-instance 'sgf
- :self (sgf2el-file-to-el ,file)
- :index '(0)))
+ :self (sgf2el-file-to-el ,file)))
,@body)))
(ert-deftest go-parse-empty-properties ()
@@ -252,8 +251,8 @@
(with-sgf-from-file "sgf-files/jp-ming-5.sgf"
(should (tree-equal (index *sgf*) '(0)))
(should (tree-equal (current *sgf*) (root *sgf*)))
- (should (string= "Famous Blood Vomiting Game" (sgf<-name *sgf*)))
- (should (= 19 (sgf<-size *sgf*)))))
+ (should (string= "Famous Blood Vomiting Game" (go-name *sgf*)))
+ (should (= 19 (go-size *sgf*)))))
;;; SGF and board tests
- [elpa] 110/255: renaming go-gtp.el to gtp.el, (continued)
- [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
- [elpa] 119/255: test cleanup,
Eric Schulte <=
- [elpa] 132/255: moving char-to-num and num-to-char to util, Eric Schulte, 2014/03/15
- [elpa] 115/255: uniform gnugo prefix, Eric Schulte, 2014/03/15
- [elpa] 134/255: notes, Eric Schulte, 2014/03/15
- [elpa] 131/255: transitioning IGS interface to use client mode, Eric Schulte, 2014/03/15
- [elpa] 140/255: board propagates setf'd moves to trackers, Eric Schulte, 2014/03/15
- [elpa] 137/255: setf method for aget, Eric Schulte, 2014/03/15
- [elpa] 133/255: igs using a process filter for asynch processing, Eric Schulte, 2014/03/15
- [elpa] 136/255: two small fixes, Eric Schulte, 2014/03/15
- [elpa] 135/255: stubbed out API interface for go-board, Eric Schulte, 2014/03/15
- [elpa] 139/255: fixed off-by-one in igs moves & tracking last move, Eric Schulte, 2014/03/15