Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a24bb5

Browse files
committed
Fix the test for pow() -- no more TypeErrors are raised!
1 parent ebd05eb commit 1a24bb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Demo/classes/Complex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ def test():
271271
],
272272
'pow(a,b)': [
273273
(1, 10, 1),
274-
(1, Complex(0,10), 'TypeError'),
274+
(1, Complex(0,10), 1),
275275
(Complex(0,10), 1, Complex(0,10)),
276276
(Complex(0,10), Complex(1), Complex(0,10)),
277-
(Complex(1), Complex(0,10), 'TypeError'),
277+
(Complex(1), Complex(0,10), 1),
278278
(2, Complex(4,0), 16),
279279
],
280280
'cmp(a,b)': [

0 commit comments

Comments
 (0)