Skip to content

Invalid printing of multi-line assertions #111

@zainab-ali

Description

@zainab-ali

This issue was copied over from: https://github.com/disneystreaming/weaver-test/issues/186
It was opened by: kubukoz


This might be an expecty bug, I didn't check yet.

For a test like this:

pureTest("demo") {
  assert(
    List(1, 2, 3).sum == List(
      1 + 2,
      3 + 1
    ).sum
  )
}

You will see:

[E] - demo
[E]   assertion failed (../../dev/pass/kernel/src/test/scala/com/ocado/ospnow/wms/tap/kernel/ConsumerOpsTests.scala:62)
[E]
[E]   List(1, 2, 3).sum == List(
[E]   | |           |   |  |
[E]   | 7           6   |  List(3, 4)
[E]   List(1, 2, 3)     false
[E]
[E]

You can see the 7 that was the result of the RHS, but it's not in the valid position.

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