Skip to content

Issue: Lab 08 Fail Test Case: 9_17 #342

@aerodromic

Description

@aerodromic

Summary

The order of printing the results seems to be off.

Description:

I think it might have something to do with my event comparator? The logic for my comparator first checks if the difference between the events are less than ERR (1E-6), if difference falls within the error (ERR), it checks if the first event has a greater customer number than the second event, if so, it returns 1 else it returns -1. If difference does not fall within the error, it returns Double.compare(first.getTimeStamp(), second.getTimeStamp()). It seems correct to me but I may be mistaken.

Screenshots

image

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