Skip to content

Commit

Permalink
fix(test): Windows line endings comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Apr 7, 2024
1 parent fa68ee6 commit 30cb4d6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ void loadScopeConstraintsTest(String originalScopes, List<String> scopes, List<S
modifiedProblem.eResource().save(outputStream, Map.of());
serializedProblem = outputStream.toString(StandardCharsets.UTF_8);
}
assertThat(serializedProblem, is(PREFIX + expectedScopes));
var normalizedResult = serializedProblem.replace("\r\n", "\n");
var normalizedExpected = (PREFIX + expectedScopes).formatted("\r\n", "\n");
assertThat(normalizedResult, is(normalizedExpected));
}

static Stream<Arguments> loadScopeConstraintsTest() {
Expand Down

0 comments on commit 30cb4d6

Please sign in to comment.