Skip to content

Commit

Permalink
Fixed incorrect loop index
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 5, 2023
1 parent 4f321d8 commit c59a085
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ void executeConstructProcessCommandListTest() {
"-jar", path + "/lib/bld/dokka-cli-1.9.10.jar",
"-pluginsClasspath", path + "/lib/bld/dokka-base-1.9.10.jar;" +
path + "/lib/bld/analysis-kotlin-descriptors-1.9.10.jar;" +
path + "/lib/bld/korte-jvm-2.7.0.jar;" +
path + "/lib/bld/javadoc-plugin-1.9.10.jar;" +
path + "/lib/bld/korte-jvm-2.7.0.jar;" +
path + "/lib/bld/kotlin-as-java-plugin-1.9.10.jar;path1;path2;path3;path4",
"-sourceSet", "-src " + path + "/src/main/kotlin",
"-outputDir", path + "/build",
Expand All @@ -83,8 +83,8 @@ void executeConstructProcessCommandListTest() {
assertThat(args).hasSize(matches.size());

IntStream.range(0, args.size()).forEach(i -> {
if (args.get(1).contains(".jar;")) {
var jars = args.get(1).split(";");
if (args.get(i).contains(".jar;")) {
var jars = args.get(i).split(";");
Arrays.stream(jars).forEach(jar -> assertThat(matches.get(i)).contains(jar));
} else{
assertThat(args.get(i)).isEqualTo(matches.get(i));
Expand Down

0 comments on commit c59a085

Please sign in to comment.