Skip to content

The DiskSpace class incorectly handles Infinity #7703

@kofemann

Description

@kofemann

My naive assumption is that Infinity is larger than 1. However, the DiskSpace class disagrees with me.

@Test
public void testInfinity() {
    assertTrue(new DiskSpace("Infinity").isLargerThan(1L));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions