예제 #1
0
파일: tests.py 프로젝트: simplyharsh/matpat
 def test_2x2_pattern_count(self):
     matrix = Matrix(2, 2)
     count, summary_counts = matrix.count_patterns()
     assert(count == 720)
     assert(summary_counts == {8: 120, 4: 48, 5: 96, 6: 168, 7: 288})
예제 #2
0
from matrix import Matrix

matrix = Matrix(2, 2)

count, summary_counts = matrix.count_patterns()
print "total_patterns: ", count, summary_counts