Skip to content

Commit 5d93510

Browse files
committed
added additional tests
1 parent f42a502 commit 5d93510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_calc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ def test_bin1d_vec_int(self):
9999
self.assertListEqual(test.tolist(), expected)
100100

101101
def test_bin1d_single_bin1(self):
102-
data = [0, 2, 3, 1, 1.5, 1.0, 0.99]
102+
data = [-1, 0, 2, 3, 1, 1.5, 1.0, 0.999999999999999]
103103
bin_edges = [1]
104104
# purposely leaving right_continous flag=False bc it should be forced in the bin1d_vec function
105105
test = bin1d_vec(data, bin_edges)
106-
expected = [-1, 0, 0, 0, 0, 0, -1]
106+
expected = [-1, -1, 0, 0, 0, 0, 0, -1]
107107
self.assertListEqual(test.tolist(), expected)
108108

109109
def test_upper_limit_right_continuous(self):

0 commit comments

Comments
 (0)