Skip to content

Commit 5c965eb

Browse files
chore: fix typos in src/test/java/com/thealgorithms/datastructures (#7045)
Fix typos in src/test/java/com/thealgorithms/datastructures
1 parent f0a437d commit 5c965eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/java/com/thealgorithms/datastructures/graphs/TwoSatTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* Testcases for 2-SAT.
11-
* Please note thea whlie checking for boolean assignments always keep n + 1 elements and the first element should be always false.
11+
* Please note thea while checking for boolean assignments always keep n + 1 elements and the first element should be always false.
1212
*/
1313
public class TwoSatTest {
1414
private TwoSat twoSat;

src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ void recursiveReverseListTest() {
214214

215215
@Test
216216
void readWithEnhancedForLoopTest() {
217-
final var expeced = new ArrayList<Integer>(Arrays.asList(10, 20, 30));
217+
final var expected = new ArrayList<Integer>(Arrays.asList(10, 20, 30));
218218

219219
SinglyLinkedList list = new SinglyLinkedList();
220-
for (final var x : expeced) {
220+
for (final var x : expected) {
221221
list.insert(x);
222222
}
223223

@@ -226,7 +226,7 @@ void readWithEnhancedForLoopTest() {
226226
readElements.add(x);
227227
}
228228

229-
assertEquals(readElements, expeced);
229+
assertEquals(readElements, expected);
230230
}
231231

232232
@Test

0 commit comments

Comments
 (0)