Skip to content

Allow rel_matcher_t to work with Fields of type double #761

@javafool

Description

@javafool

I'm aware of the limitations in using rel_matcher_t for testing limits on double types, but I want to do it anyway. While attempting this, I noticed that the Field::extract(std::data(msg)) failed to extract the double from its field (field_matchers.hpp:189) properly. By changing the line to: msg.get(Field{}), the extraction was successful, and I could use rel_matcher_t for valid range checking on various double message fields (at least for my initial development). This extraction failure could be the intended behavior, forcing the use of a proper matcher that uses a small delta. Otherwise, I'm finding the library most useful. Thank you!

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