Skip to content

Commit

Permalink
Merge #30
Browse files Browse the repository at this point in the history
30: Fix comparison constant position r=aragilar a=deepsource-autofix[bot]



Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
bors[bot] and deepsource-autofix[bot] committed Oct 2, 2020
2 parents 8a92262 + 7ccce50 commit 6780cfe
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 6780cfe

Please sign in to comment.