Download check_if_array_is_good/java_tests/Main.java from DatasetRepo/FPEval: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/check_if_array_is_good/java_tests/Main.java
- Command line
-
hf download hf://datasets/DatasetRepo/FPEval@refs/pr/1/check_if_array_is_good/java_tests/Main.java
-
curl -L -o Main.java https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/check_if_array_is_good/java_tests/Main.java
656 Bytes
| import static org.junit.jupiter.api.Assertions.*; | |
| import org.junit.jupiter.api.Test; | |
| import java.util.List; | |
| import java.util.Arrays; | |
| import java.util.ArrayList; | |
| public class Main { | |
| //Program start | |
| //Program end | |
| public void test1() { | |
| assertEquals(false, isGood(new ArrayList<>(Arrays.asList(2, 1, 3)))); | |
| } | |
| public void test2() { | |
| assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 3, 3, 2)))); | |
| } | |
| public void test3() { | |
| assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 1)))); | |
| } | |
| public void test4() { | |
| assertEquals(false, isGood(new ArrayList<>(Arrays.asList(3, 4, 4, 1, 2, 1)))); | |
| } | |
| } | |