Skip to content

Commit d5cbdd1

Browse files
committed
境界値判定のミスがでたりしそうなので、周辺は全方位でチェックしておいた方がよさげ
1 parent 37e88e0 commit d5cbdd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_goban.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ QUnit.test("隅のアタリ判定", function() {
3434
});
3535

3636
QUnit.module("isDead", {});
37-
QUnit.test("", function() {
37+
QUnit.test("左上隅", function() {
3838
var board = new Goban.Board({ 'size': 9 });
3939
board.point(0, 0, Goban.BLACK);
4040
board.point(1, 0, Goban.WHITE);
4141
board.point(0, 1, Goban.WHITE);
4242
QUnit.equal(board.isDead(0, 0, Goban.BLACK), true, "黒石は取られること");
4343
});
4444

45-
QUnit.test("", function() {
45+
QUnit.test("上辺", function() {
4646
var board = new Goban.Board({ 'size': 9 });
4747
board.point(0, 3, Goban.BLACK);
4848
board.point(0, 2, Goban.WHITE);

0 commit comments

Comments
 (0)