Skip to content

Parameter resolution breaks with primitive int #22

@maxbechtold

Description

@maxbechtold

The docs clearly mention to use an Integer index, however I myself wrote a method like such

  @GoldenMasterRun
  void instrumentProgramUnderTest(int index) {
    // Do some hard work whose output will be compared to that of previous runs
  }

This way, tests will end in errors due to a ParameterResolutionException. This should at least hint to using the boxed types, or even auto-unbox parameters if possible.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions