Skip to content

Commit d7d4061

Browse files
committed
#6 fixed
1 parent 78a1256 commit d7d4061

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/org/eolang/jucs/JucsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private Collection<String> yamls(final String prefix) {
9090
);
9191
final String[] subs = folder.split("\n");
9292
for (final String sub : subs) {
93-
final Path path = Paths.get(String.format("%s%s", prefix, sub));
93+
final Path path = Paths.get(String.format("/%s%s", prefix, sub));
9494
if (matcher.matches(path)) {
9595
out.add(String.format("%s/%s", home, sub));
9696
} else if (!JucsProvider.IS_FILE.matcher(sub).matches()) {

src/test/java/org/eolang/jucs/JucsProviderTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ void findsInFolders(final String file) {
4545
Assertions.assertEquals(file, "hey!\n");
4646
}
4747

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

0 commit comments

Comments
 (0)