Skip to content

Commit

Permalink
Test array_sequence_equal with length 1 Quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Horton committed Mar 20, 2018
1 parent 74b707e commit ee8873f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gunagala/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@ def test_array_empty():
utils.array_sequence_equal([])


def test_array_single():
def test_array_one_two():
assert utils.array_sequence_equal([(1.2, 1.3) * u.m]) is True


def test_array_twice():
def test_array_two_two():
assert utils.array_sequence_equal(((1.2, 1.4) * u.m, (1.2, 1.4) * u.m)) is True


def test_array_two_one():
assert utils.array_sequence_equal(((1.2) * u.m, (1.2) * u.m)) is True


def test_array_different():
assert utils.array_sequence_equal([(1.2, 1.4) * u.m, (1.2, 1.3) * u.m]) is False

Expand Down

0 comments on commit ee8873f

Please sign in to comment.