Skip to content

isEqualToNormalizingWhitespace doesn't normalise non breaking space characters #3113

@ArneKlein

Description

@ArneKlein

Describe the bug
isEqualToNormalizingWhitespace doesn't normalise non breaking space characters

  • assertj core 3.21:
  • java version: 17
  • Kotlin 1.9.0
  • test framework version: JUnit 5.9.1
  • os (if relevant):

Compare 2 strings with one having a NBSP character instead of a normal space

val result = "10,00 € to 100NBSP000,00 € per year"
val expected = "10,00 € to 100 000,00 € per year"
assertThat(result).isEqualToNormalizingWhitespace(expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions