mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user