[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 122/255: system-level test combining gnugo and sgf
From: |
Eric Schulte |
Subject: |
[elpa] 122/255: system-level test combining gnugo and sgf |
Date: |
Sun, 16 Mar 2014 01:02:31 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 8792ce45e08e96124fa79f4e53686de2dfe13ee4
Author: Eric Schulte <address@hidden>
Date: Sun May 27 17:18:48 2012 -0600
system-level test combining gnugo and sgf
---
go-tests.el | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/go-tests.el b/go-tests.el
index 83778d5..ced0637 100644
--- a/go-tests.el
+++ b/go-tests.el
@@ -306,4 +306,16 @@
(with-sgf-display "sgf-files/2-capture.sgf"
(go-board-next 8) (should (tree-equal (go-stone-counts) '(6 . 0)))))
+(ert-deftest go-connect-gnugo-to-sgf ()
+ (let ((*sgf* (make-instance 'sgf))
+ (*gnugo* (make-instance 'gnugo :buffer (gnugo-start-process))))
+ (unwind-protect
+ (progn (setf (go-size *sgf*) (go-size *gnugo*))
+ (should (= (go-size *sgf*) (go-size *gnugo*)))
+ (setf (go-name *sgf*) (go-name *gnugo*))
+ (should (string= (go-name *sgf*) (go-name *gnugo*)))
+ (dotimes (n 5) (setf (go-move *sgf*) (go-move *gnugo*))))
+ (let ((kill-buffer-query-functions nil))
+ (should (kill-buffer (buffer *gnugo*)))))))
+
(provide 'go-tests)
- [elpa] 96/255: renaming sgf->go, (continued)
- [elpa] 96/255: renaming sgf->go, Eric Schulte, 2014/03/15
- [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 <=
- [elpa] 120/255: passing all tests, Eric Schulte, 2014/03/15
- [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