Skip to content

Commit

Permalink
Be symmetric
Browse files Browse the repository at this point in the history
  • Loading branch information
invisibleroads committed Dec 12, 2016
1 parent c17e377 commit d3a2731
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@


SOURCE_TABLE = DataFrame([
[2, 200],
[6, 600],
[1, 100],
[5, 500],
], columns=[
'x', 'y',
])


@pytest.mark.parametrize('x, y', [
(0, 200),
(1, 200),
(0, 100),
(1, 100),
(2, 200),
(3, 300),
(4, 400),
(5, 500),
(6, 600),
(7, 600),
(6, 500),
])
def test_interpolate_values(x, y):
assert interpolate_values(SOURCE_TABLE, 'x', x)['y'] == y

0 comments on commit d3a2731

Please sign in to comment.