CoolFace
Datasetpublic

FPEvalDataset/LeetCodeProblem

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes302downloads
Main.java30 linesDownload Raw Back to java_tests
1 2import static org.junit.jupiter.api.Assertions.*;3import org.junit.jupiter.api.Test;4import java.util.List;5import java.util.Arrays;6import java.util.ArrayList;7public class Main {8    //Program start9    10    //Program end11 12    @Test13public void test1() {14    assertEquals(false, isGood(new ArrayList<>(Arrays.asList(2, 1, 3))));15}16@Test17public void test2() {18    assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 3, 3, 2))));19}20@Test21public void test3() {22    assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 1))));23}24@Test25public void test4() {26    assertEquals(false, isGood(new ArrayList<>(Arrays.asList(3, 4, 4, 1, 2, 1))));27}28 29}30