Skip to content

Commit

Permalink
Modified test for numeric types.
Browse files Browse the repository at this point in the history
  • Loading branch information
blais authored and juarezr committed Oct 15, 2021
1 parent 1047f9d commit da43793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions petl/test/test_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


from datetime import datetime
from decimal import Decimal


from petl.test.helpers import eq_
Expand Down Expand Up @@ -29,9 +30,9 @@ def test_comparable():
eq_(e, a)

# mixed numeric
d = [3., 1, 2.5]
d = [3., 1, 2.5, Decimal('1.5')]
a = sorted(d, key=Comparable)
e = [1, 2.5, 3.]
e = [1, Decimal('1.5'), 2.5, 3.]
eq_(e, a)

# mixed numeric and bool
Expand Down

0 comments on commit da43793

Please sign in to comment.