Skip to content

Commit

Permalink
Sort test input
Browse files Browse the repository at this point in the history
  • Loading branch information
schmika committed Jun 12, 2024
1 parent da267c4 commit 120d85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void testMultiFileParse() throws XMLStreamException, IOException {
.filter(p -> p.getFileName().toString().startsWith("1860-"))
.map(Path::toAbsolutePath)
.map(Path::toString)
.sorted()
.collect(Collectors.joining("+"));
List<OcrBox> boxes =
new AltoParser(filterFac.create(new StringReader(ptr)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.io.IOUtils;
Expand All @@ -31,6 +32,7 @@ class MultiFileSourceReaderTest {
try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, "1860-11-30*.xml")) {
stream.forEach(filePaths::add);
}
filePaths.sort(Comparator.comparing(Path::toString));
pointer =
SourcePointer.parse(
filePaths.stream()
Expand Down

0 comments on commit 120d85a

Please sign in to comment.