-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=2021.9.4 | ||
version=2021.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/test/java/examples/java/noreceiver/kotlinparameterizedlist/Correct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package examples.java.noreceiver.kotlinparameterizedlist; | ||
|
||
import edu.illinois.cs.cs125.jenisol.core.FixedParameters; | ||
import edu.illinois.cs.cs125.jenisol.core.RandomParameters; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Random; | ||
|
||
public class Correct { | ||
public static int listSize(List<Item> values) { | ||
return values.size(); | ||
} | ||
|
||
@FixedParameters private static final List<List<Item>> FIXED = Arrays.asList(null, List.of()); | ||
|
||
@RandomParameters | ||
private static List<Item> randomParameters(Random random) { | ||
return Arrays.asList(new Item[random.nextInt(32)]); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/java/examples/java/noreceiver/kotlinparameterizedlist/Correct0.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package examples.java.noreceiver.kotlinparameterizedlist | ||
|
||
fun listSize(values: List<Item>): Int { | ||
return values.size | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/java/examples/java/noreceiver/kotlinparameterizedlist/Incorrect0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package examples.java.noreceiver.kotlinparameterizedlist; | ||
|
||
import java.util.List; | ||
|
||
public class Incorrect0 { | ||
public static int listSize(List<Item> values) { | ||
return 0; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/test/java/examples/java/noreceiver/kotlinparameterizedlist/Item.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package examples.java.noreceiver.kotlinparameterizedlist; | ||
|
||
public class Item {} |