fix: placement and tests

This commit is contained in:
2026-04-17 01:09:22 +03:30
parent 636de18d6c
commit 87affb5e56
8 changed files with 20 additions and 36 deletions
+7 -9
View File
@@ -122,15 +122,13 @@ src
│ └── resources │ └── resources
└── test └── test
└── java └── java
├── MainTests ├── MainTestPartitions.java # MUST PASS
├── TestPartitions.java # MUST PASS ├── MainTestTriangle.java # MUST PASS
├── TestTriangle.java # MUST PASS ├── MainTestTraversal.java # MUST PASS
│ └── TestTraversal.java # MUST PASS ├── BonusTestDates.java # OPTIONAL
├── BonusTests ├── BonusTestEmail.java # OPTIONAL
├── TestDates.java # OPTIONAL ├── BonusTestPalindromes.java # OPTIONAL
│ ├── TestEmail.java # OPTIONAL └── BonusTestPasswords.java # OPTIONAL
│ ├── TestPalindromes.java # OPTIONAL
│ └── TestPasswords.java # OPTIONAL
``` ```
### 7. Commit Your Work Locally ### 7. Commit Your Work Locally
@@ -1,12 +1,10 @@
package BonusTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertNull;
public class TestDates { public class BonusTestDates {
static BonusExercises ex; static BonusExercises ex;
@BeforeAll @BeforeAll
@@ -1,12 +1,10 @@
package BonusTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
public class TestEmail { public class BonusTestEmail {
static BonusExercises ex; static BonusExercises ex;
@BeforeAll @BeforeAll
@@ -1,5 +1,3 @@
package BonusTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -8,7 +6,7 @@ import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestPalindromes { public class BonusTestPalindromes {
static BonusExercises ex; static BonusExercises ex;
@BeforeAll @BeforeAll
@@ -1,11 +1,9 @@
package BonusTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestPasswords { public class BonusTestPasswords {
static BonusExercises ex; static BonusExercises ex;
@BeforeAll @BeforeAll
@@ -1,16 +1,14 @@
package MainTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
public class TestPartitions { public class MainTestPartitions {
static Exercises ex; static MainExercises ex;
@BeforeAll @BeforeAll
static void setUp() { static void setUp() {
ex = new Exercises(); ex = new MainExercises();
} }
@Test @Test
@@ -1,16 +1,14 @@
package MainTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
public class TestTraversal { public class MainTestTraversal {
static Exercises ex; static MainExercises ex;
@BeforeAll @BeforeAll
static void setUp() { static void setUp() {
ex = new Exercises(); ex = new MainExercises();
} }
@Test @Test
@@ -1,16 +1,14 @@
package MainTests;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
public class TestTriangle { public class MainTestTriangle {
static Exercises ex; static MainExercises ex;
@BeforeAll @BeforeAll
static void setUp() { static void setUp() {
ex = new Exercises(); ex = new MainExercises();
} }
@Test @Test