projects
/
pseudoku.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30f8ff6
)
Documented constraints.diagonal test more better.
master
author
Eevee
<eevee@nyarumaa.(none)>
Wed, 7 Jan 2009 14:58:52 +0000
(09:58 -0500)
committer
Eevee
<eevee@nyarumaa.(none)>
Wed, 7 Jan 2009 14:58:52 +0000
(09:58 -0500)
pseudoku/tests/constraints/diagonal.py
patch
|
blob
|
history
diff --git
a/pseudoku/tests/constraints/diagonal.py
b/pseudoku/tests/constraints/diagonal.py
index
c118339
..
19532b2
100644
(file)
--- a/
pseudoku/tests/constraints/diagonal.py
+++ b/
pseudoku/tests/constraints/diagonal.py
@@
-4,10
+4,11
@@
from pseudoku.grid.constraints import Diagonal
from pseudoku.tests import SudokuTestCase
class DiagonalGridTestCase(SudokuTestCase):
- """Tests that grids with extra non-standard constraints are solved."""
-
+ """Tests that grids with extra Diagonal constraints are solved."""
def test_main_diagonals(self):
+ """Tests an easy puzzle with constraints along both main diagonals."""
+
grid = Grid.from_string("""
3...2...7 ...3.1... ..6...4..
89.....54 4...5...8 61.....32