예제 #1
0
 def test_007_3x3_false_negative_1_instead_of_0(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[1, -1, 1],
          [0, 1, 0],
          [0, 0, 1]]))
예제 #2
0
 def test_001_4x4_true(self):
     self.assertTrue(identity_mtx.is_identity_matrix(
         [[1, 0, 0, 0],
         [0, 1, 0, 0],
         [0, 0, 1, 0],
         [0, 0, 0, 1]]))
예제 #3
0
 def test_006_4x4_false_1_instead_of_0(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[1, 0, 0, 0],
          [0, 1, 0, 1],
          [0, 0, 1, 0],
          [0, 0, 0, 1]]))
예제 #4
0
 def test_005_1x9_false(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[1, 0, 0, 0, 0, 0, 0, 0, 0]]))
예제 #5
0
 def test_004_3x4_false(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[1, 0, 0, 0],
          [0, 1, 1, 0],
          [0, 0, 0, 1]]))
예제 #6
0
 def test_003_3x3_false_2_instead_of_1(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[2, 0, 0],
         [0, 2, 0],
         [0, 0, 2]]))
예제 #7
0
 def test_002_3x3_false_0_instead_of_1(self):
     self.assertFalse(identity_mtx.is_identity_matrix(
         [[1, 0, 0],
         [0, 1, 0],
         [0, 0, 0]]))