31
31
logger .addHandler (stream_handler )
32
32
33
33
34
- @pytest .mark .mat_ops ()
34
+ @pytest .mark .mat_ops
35
35
@pytest .mark .parametrize (
36
36
("mat1" , "mat2" ), [(mat_a , mat_b ), (mat_c , mat_d ), (mat_d , mat_e ), (mat_f , mat_h )]
37
37
)
@@ -51,7 +51,7 @@ def test_addition(mat1, mat2):
51
51
matop .add (mat1 , mat2 )
52
52
53
53
54
- @pytest .mark .mat_ops ()
54
+ @pytest .mark .mat_ops
55
55
@pytest .mark .parametrize (
56
56
("mat1" , "mat2" ), [(mat_a , mat_b ), (mat_c , mat_d ), (mat_d , mat_e ), (mat_f , mat_h )]
57
57
)
@@ -71,7 +71,7 @@ def test_subtraction(mat1, mat2):
71
71
assert matop .subtract (mat1 , mat2 )
72
72
73
73
74
- @pytest .mark .mat_ops ()
74
+ @pytest .mark .mat_ops
75
75
@pytest .mark .parametrize (
76
76
("mat1" , "mat2" ), [(mat_a , mat_b ), (mat_c , mat_d ), (mat_d , mat_e ), (mat_f , mat_h )]
77
77
)
@@ -93,21 +93,21 @@ def test_multiplication(mat1, mat2):
93
93
assert matop .subtract (mat1 , mat2 )
94
94
95
95
96
- @pytest .mark .mat_ops ()
96
+ @pytest .mark .mat_ops
97
97
def test_scalar_multiply ():
98
98
act = (3.5 * np .array (mat_a )).tolist ()
99
99
theo = matop .scalar_multiply (mat_a , 3.5 )
100
100
assert theo == act
101
101
102
102
103
- @pytest .mark .mat_ops ()
103
+ @pytest .mark .mat_ops
104
104
def test_identity ():
105
105
act = (np .identity (5 )).tolist ()
106
106
theo = matop .identity (5 )
107
107
assert theo == act
108
108
109
109
110
- @pytest .mark .mat_ops ()
110
+ @pytest .mark .mat_ops
111
111
@pytest .mark .parametrize ("mat" , [mat_a , mat_b , mat_c , mat_d , mat_e , mat_f ])
112
112
def test_transpose (mat ):
113
113
if (np .array (mat )).shape < (2 , 2 ):
0 commit comments