Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 30, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Fix asserts for Sets and Maps

The problem is that AssertJ's method `isEqualTo` doesn't always work for Sets and Maps because it assumes strict order of elements:
1. `assertThat(MAP).isEqualTo(Map.of(...))`
2. `assertThat(SET).isEqualTo(Set.of(...))`

In both cases, we have to replace `isEqualTo` by `containsExactlyInAnyOrderEntriesOf` or similar method.

* Simplify creating lists in ByChainedTest

After the simplification, it became obvious that some of ByChainedTest tests don't really test anything. They create a bunch of lists (e.g. `elems345`) which are not used. And only the empty list of elements is loaded and asserted.

Seems that this complex/misleading test logic in ByChainedTest was
introduced in commit c4861b8 (some "patch from BenChambers"). Needs to be reviewed and fixed.

* slightly improve PDF check in BrowsingContextTest

now we check that the resulting content at least _looks like PDF_.
@pull pull bot locked and limited conversation to collaborators Dec 30, 2025
@pull pull bot added the ⤵️ pull label Dec 30, 2025
@pull pull bot merged commit d867b37 into NDViet:trunk Dec 30, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant