Skip to content

Commit

Permalink
Fix comparison constant position
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Aug 16, 2020
1 parent a532b05 commit 7ccce50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def test_not_float_with_none():
assert str_to_float("this is not a float") is None

def test_decimal(default_str_to_float):
assert 1.234 == default_str_to_float("1.234")
assert default_str_to_float("1.234") == 1.234

def test_exp_notation(default_str_to_float):
assert 5.76e7 == default_str_to_float("5.76e7")
assert default_str_to_float("5.76e7") == 5.76e7

def test_fraction(default_str_to_float):
assert 3 / 2 == default_str_to_float("3/2")
Expand Down

0 comments on commit 7ccce50

Please sign in to comment.