We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae60fd5 commit ccc06ebCopy full SHA for ccc06eb
test/test_goban.js
@@ -35,10 +35,18 @@ QUnit.test("隅のアタリ判定", function() {
35
36
QUnit.module("point", {});
37
38
-QUnit.test("pointのテスト", function() {
+QUnit.test("真ん中にあるやつ", function() {
39
var board = new Goban.Board({ 'size': 9 });
40
board.point(3, 3, Goban.BLACK);
41
QUnit.equal(board.point(3, 3), Goban.BLACK, "ちゃんとsetされていること");
42
+ QUnit.equal(board.data[3*9+3], Goban.BLACK, "ちゃんとsetされていること");
43
+});
44
+
45
+QUnit.test("上辺", function() {
46
+ var board = new Goban.Board({ 'size': 9 });
47
+ board.point(0, 3, Goban.BLACK);
48
+ QUnit.equal(board.point(0, 3), Goban.BLACK, "ちゃんとsetされていること");
49
+ QUnit.equal(board.data[3*9+0], Goban.BLACK, "ちゃんとsetされていること");
50
});
51
52
QUnit.module("isDead", {});
0 commit comments