Skip to content

Can the line after a ... contain [..]? #216

Closed
@smoelius

Description

@smoelius

Part of my test's expected stdout looks like this (note the ... and the [..]):

stderr=```
...
     Running tests/a.rs (examples/failure/target/debug/deps/a-[..])
error: test failed, to rerun pass `--test a`
```

When I run the test, the actual stdout doesn't match, and I see this in the diff:

  24      - ...
  25      -      Running tests/a.rs (examples/failure/target/debug/deps/a-[..])
       24 +     Finished test [unoptimized + debuginfo] target(s) in 0.00s
       25 +      Running tests/a.rs (examples/failure/target/debug/deps/a-ba92ccadfb1a363b)

The above looks odd to me, because I would expect the ... to match the Finished line.

If I remove the Running line from the expected stdout, the test passes (i.e., the ... matches both the Finished and Running lines).

This suggests to me that the line after a ... cannot contain a [..](?).

Is this correct, and if so, is it expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-snapboxArea: snapbox packageenhancementImprove the expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions