Skip to content

Decide whether we want to standardize which assert_eq! parameter ("left" or "right") should be used for "expected" value #11270

@findepi

Description

@findepi

assert_eq! names its parameters "left" and "right" and doesn't seem to designate which one is expected and which is actual.
However, when a test is run from RustRover, the IDE is apparently opinionated and currently expects the "right" to be "the expected" (see screenshot below).

Let's decide whether we as the project want to care about this. Currently, the code varies: example 1, example 2.

image

Some RustRover references

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