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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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