Skip to content

Comparison of JSONValue array payloads fails #48

@joseph-wakeling-frequenz

Description

Simple test case:

auto c = JSONValue([12, 13])
assert(c == c);  // fails

I think this is down to the fact that arrays can be null and therefore the reliance on TaggedAlgebraic!PayloadUnion.opEquals fails when trying to decide between the null_ and array payload types.

The fix I'm preparing for #44 should address this.

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