Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Java - Accuracy issues for Estimate Cost  #9

@unclebinary1001

Description

@unclebinary1001

the getTotalClaimCostForDisaster method is of float data type so accuracy does not match expected value in TestSet2 so test4_getTotalClaimCostForDisaster fails for getTotalClaimCostForDisaster(56).

image

I tried changing estimate_cost data type in Claim.java and the return types of the methods that depend on it from Float to Double. This fixes the test and it works expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions