Download apply_operations_to_an_array/java_tests/Main.java from FPEvalDataset/LeetCodeProblem: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/03609b0d608e55ff4a0933995b80e475aedcd903/apply_operations_to_an_array/java_tests/Main.java
- Command line
-
hf download hf://datasets/FPEvalDataset/LeetCodeProblem@03609b0d608e55ff4a0933995b80e475aedcd903/apply_operations_to_an_array/java_tests/Main.java
-
curl -L -o Main.java https://huggingface.co/datasets/FPEvalDataset/LeetCodeProblem/resolve/03609b0d608e55ff4a0933995b80e475aedcd903/apply_operations_to_an_array/java_tests/Main.java
527 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(new ArrayList<>(Arrays.asList(1,4,2,0,0,0)), applyOperations(new ArrayList<>(Arrays.asList(1,2,2,1,1,0)))); | |
| } | |
| public void test2() { | |
| assertEquals(new ArrayList<>(Arrays.asList(1,0)), applyOperations(new ArrayList<>(Arrays.asList(0,1)))); | |
| } | |
| } | |