Skip to content

Commit

Permalink
DocumentTest
Browse files Browse the repository at this point in the history
  • Loading branch information
milesziemer committed Jun 13, 2024
1 parent c1900a5 commit 69aa180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public static Matcher<CharSequence> string(String other) {
return new CustomTypeSafeMatcher<CharSequence>(other) {
@Override
protected boolean matchesSafely(CharSequence item) {
return other.equals(item.toString());
return other.replace("\n", "\\n").replace("\r", "\\r").equals(item.toString().replace("\n", "\\n").replace("\r", "\\r"));
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void loadsWhenModelHasInvalidSyntax() {

@Test
public void loadsProjectWithMultipleNamespaces() {
Path root = Paths.get(getClass().getResource("multiple-namespaces").getFile());
Path root = toPath(getClass().getResource("multiple-namespaces"));
Project project = ProjectLoader.load(root).unwrap();

assertThat(project.getSources(), hasItem(root.resolve("model")));
Expand Down

0 comments on commit 69aa180

Please sign in to comment.