Skip to content

Commit

Permalink
Added some tests which fail then commented them out..
Browse files Browse the repository at this point in the history
This is to act as placeholders for fixing them. But I'd rather
we fix the normal use of COUNT first.
  • Loading branch information
mgrazebrook committed Jun 16, 2020
1 parent df923e6 commit c02e436
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_excel_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def test_min(self):
self.assertEqual(ef.MIN(dt), dt)
self.assertEqual(ef.MIN([dt+4, dt, dt+2]), dt)

# def test_min_mixed_range(self):
# result = ef.MIN(((8,4), 7, 3), (9, 2.5), 2.0)
# expect = 2.0
# self.assertEqual(expect, result)

def test_max(self):
self.assertEqual(ef.MAX(1, 7, -4, 11), 11)

Expand Down Expand Up @@ -190,6 +195,15 @@ def test_different_types(self):
result = ef.COUNT(data)
self.assertEqual(expect, result)

# def test_mixed_range(self):
# expect = 5
# range = ((2, 4.8), (1, 12))
# result = ef.count(range, 28)
# self.assertEqual(expect, result)

def test_count_error(self):
pass # TODO: #DIV/0 etc


# Median test
class TestMedian(unittest.TestCase):
Expand Down

0 comments on commit c02e436

Please sign in to comment.