Skip to content

Minor error in testH3Distance.c? #424

@RichardVasquez

Description

@RichardVasquez

The last test named h3DistanceEdge() performs the same test twice at the end, though it looks like the very last assert should be flipped around.

        t_assert(H3_EXPORT(h3Distance)(edge, dest) == 1,
                 "edge has distance to destination");
        t_assert(H3_EXPORT(h3Distance)(edge, dest) == 1,
                 "destination has distance to edge");

Replacing it with t_assert(H3_EXPORT(h3Distance)(dest, edge) == 1, should fix it.

I wasn't too sure if a PR for this one line was merited.

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