Skip to content

Test fixture requires an empty constructor #1

@bcooksey

Description

@bcooksey

When trying to use googletest's fixture for the zone unit tests, I had to define an empty constructor on the Zone class to get the test suite to compile. Trying to use the real constructor in the fixture class gave either "constant expression not allowed" ( Zone z1 = ... ) or "expected identifier before ''" ( Zone z1(...) ).

I believe there is a way to correctly use the real constructor and not need the empty version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions