Skip to content

Commit

Permalink
Added test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethshsu committed Mar 26, 2024
1 parent fddc0a6 commit d06ac9b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions chainladder/core/tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@


def test_heatmap_render(raa):
""" The heatmap method should render correctly given the sample."""
return raa.heatmap()
"""The heatmap method should render correctly given the sample."""
assert raa.heatmap()


def test_to_frame(raa):
try:
cl.Chainladder().fit(raa).cdf_.to_frame()
cl.Chainladder().fit(raa).cdf_.to_frame(origin_as_datetime=False)
cl.Chainladder().fit(raa).cdf_.to_frame(origin_as_datetime=True)
cl.Chainladder().fit(raa).ultimate_.to_frame()
cl.Chainladder().fit(raa).ultimate_.to_frame(origin_as_datetime=False)
cl.Chainladder().fit(raa).ultimate_.to_frame(origin_as_datetime=True)
def test_empty_triangle():
assert cl.Triangle()


except:
assert False
def test_to_frame(raa):
assert cl.Chainladder().fit(raa).cdf_.to_frame()
assert cl.Chainladder().fit(raa).cdf_.to_frame(origin_as_datetime=False)
assert cl.Chainladder().fit(raa).cdf_.to_frame(origin_as_datetime=True)
assert cl.Chainladder().fit(raa).ultimate_.to_frame()
assert cl.Chainladder().fit(raa).ultimate_.to_frame(origin_as_datetime=False)
assert cl.Chainladder().fit(raa).ultimate_.to_frame(origin_as_datetime=True)

0 comments on commit d06ac9b

Please sign in to comment.