Skip to content

Commit

Permalink
#8 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 5, 2022
1 parent 46eb048 commit 855e36c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/eolang/jucs/JucsProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private Collection<String> yamls(final String prefix) {
);
final String[] subs = folder.split("\n");
for (final String sub : subs) {
final Path path = Paths.get(String.format("/%s%s", prefix, sub));
final Path path = Paths.get(String.format("%s%s", prefix, sub));
if (matcher.matches(path)) {
out.add(String.format("%s/%s", home, sub));
} else if (!JucsProvider.IS_FILE.matcher(sub).matches()) {
Expand Down
8 changes: 7 additions & 1 deletion src/test/java/org/eolang/jucs/JucsProviderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ void findsInFolders(final String file) {
}

@ParameterizedTest
@ClasspathSource(value = "com/yegor256/jucs/bar", glob = "**/*.text")
@ClasspathSource(value = "com/yegor256/jucs/bar", glob = "**.text")
void findsWithBigGlob(final String file) {
Assertions.assertEquals(file, "hey!\n");
}

@ParameterizedTest
@ClasspathSource(value = "com/yegor256/jucs/bar", glob = "*.text")
void findsWithLocalGlob(final String file) {
Assertions.assertEquals(file, "hey!\n");
}

}

0 comments on commit 855e36c

Please sign in to comment.