chore: fix typos in src/test/java/com/thealgorithms/datastructures (#7045)

Fix typos in src/test/java/com/thealgorithms/datastructures
This commit is contained in:
Lê Nam Khánh
2025-11-05 16:09:05 +07:00
committed by GitHub
parent f0a437d08c
commit 5c965eb097
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import org.junit.jupiter.api.Test;
/**
* Testcases for 2-SAT.
* Please note thea whlie checking for boolean assignments always keep n + 1 elements and the first element should be always false.
* Please note thea while checking for boolean assignments always keep n + 1 elements and the first element should be always false.
*/
public class TwoSatTest {
private TwoSat twoSat;

View File

@@ -214,10 +214,10 @@ public class SinglyLinkedListTest {
@Test
void readWithEnhancedForLoopTest() {
final var expeced = new ArrayList<Integer>(Arrays.asList(10, 20, 30));
final var expected = new ArrayList<Integer>(Arrays.asList(10, 20, 30));
SinglyLinkedList list = new SinglyLinkedList();
for (final var x : expeced) {
for (final var x : expected) {
list.insert(x);
}
@@ -226,7 +226,7 @@ public class SinglyLinkedListTest {
readElements.add(x);
}
assertEquals(readElements, expeced);
assertEquals(readElements, expected);
}
@Test