repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/OneBitDifferenceTest.java
src/test/java/com/thealgorithms/bitmanipulation/OneBitDifferenceTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; public class OneBitDifferenceTest { @ParameterizedTest @CsvSource({"7, 5, true", "3, 2, true", "10, 8...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/BcdConversionTest.java
src/test/java/com/thealgorithms/bitmanipulation/BcdConversionTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class BcdConversionTest { @Test public void testBcdToDecimal() { int decimal = BcdConversion....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/Xs3ConversionTest.java
src/test/java/com/thealgorithms/bitmanipulation/Xs3ConversionTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; /** * Unit tests for the Xs3Conversion class. */ public class Xs3ConversionTest { /** * Test the xs3ToBinary method with an XS-3 number. */ @Test public ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/SwapAdjacentBitsTest.java
src/test/java/com/thealgorithms/bitmanipulation/SwapAdjacentBitsTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; class SwapAdjacentBitsTest { @ParameterizedTest @CsvSource({"2, 1", // 2 (binary: 10) -> 1 (binary: 0...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/TwosComplementTest.java
src/test/java/com/thealgorithms/bitmanipulation/TwosComplementTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; /** * Test case for Highest Set Bit * @author Abhinay Verma(https://github.com/Monk-AbhinayVerma) */ public class ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/bitmanipulation/ClearLeftmostSetBitTest.java
src/test/java/com/thealgorithms/bitmanipulation/ClearLeftmostSetBitTest.java
package com.thealgorithms.bitmanipulation; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class ClearLeftmostSetBitTest { @Test public void testClearLeftmostSetBit() { assertEquals(10, ClearLeftmostSetBit.clearLeftmostSetBit(26)); // 11010 -> 0...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/MoveToFrontTest.java
src/test/java/com/thealgorithms/compression/MoveToFrontTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.List; import org.junit.jupiter.api.Test; public class MoveToFrontTest { @Test public void testTransformAndInverseBananaExample() {...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/ArithmeticCodingTest.java
src/test/java/com/thealgorithms/compression/ArithmeticCodingTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.math.BigDecimal; import ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/RunLengthEncodingTest.java
src/test/java/com/thealgorithms/compression/RunLengthEncodingTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; class RunLengthEncodingTest { @Test void testNullInputs() { // Test that a null input to compress returns an empty string assertEquals("", RunLengthEncoding....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/LZWTest.java
src/test/java/com/thealgorithms/compression/LZWTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.junit....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/ShannonFanoTest.java
src/test/java/com/thealgorithms/compression/ShannonFanoTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Map; import org.junit.jupiter.api.Test; class ShannonFanoTest { @Test void testNullInput() { // Test with a null string, sho...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/LZ77Test.java
src/test/java/com/thealgorithms/compression/LZ77Test.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/BurrowsWheelerTransformTest.java
src/test/java/com/thealgorithms/compression/BurrowsWheelerTransformTest.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test;...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/compression/LZ78Test.java
src/test/java/com/thealgorithms/compression/LZ78Test.java
package com.thealgorithms.compression; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Tes...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionTest.java
src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionTest.java
package com.thealgorithms.datastructures.disjointsetunion; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; public class DisjointSetUnionTest { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionBySizeTest.java
src/test/java/com/thealgorithms/datastructures/disjointsetunion/DisjointSetUnionBySizeTest.java
package com.thealgorithms.datastructures.disjointsetunion; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; public class DisjointSetUnionBySizeT...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/CreateAndDetectLoopTest.java
src/test/java/com/thealgorithms/datastructures/lists/CreateAndDetectLoopTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class CreateAndDetectLoopTest { private CreateAndDetectLoop.No...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java
src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; /** * Test cases for Reverse K Group LinkedList * Author: Bama Charan Chhandogi (https://github.com/BamaCharanCh...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/MergeKSortedLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/MergeKSortedLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertNull; import com.thealgorithms.datastructures.lists.MergeKSortedLinkedList.Node; import java.util.Arrays; import org.junit.jupiter.api.Test; class Mer...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java
src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import java.util.stream.IntStream; import org.junit.jupiter.api.B...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/FlattenMultilevelLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/FlattenMultilevelLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Unit tests for ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; imp...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/CircularDoublyLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/CircularDoublyLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class CircularDoublyLinkedListTest { private CircularDoubly...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/SearchSinglyLinkedListRecursionTest.java
src/test/java/com/thealgorithms/datastructures/lists/SearchSinglyLinkedListRecursionTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class SearchSinglyLinkedListRecursionTest { private SearchSing...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/CountSinglyLinkedListRecursionTest.java
src/test/java/com/thealgorithms/datastructures/lists/CountSinglyLinkedListRecursionTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; public class CountSingl...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/MergeSortedArrayListTest.java
src/test/java/com/thealgorithms/datastructures/lists/MergeSortedArrayListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.ju...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/SortedLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/SortedLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java
src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; /** * Test cases for RotateSinglyLinkedLists. * Author: Bama Charan Chhandogi (https://github.com/BamaCharanChha...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/CursorLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/CursorLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class Cursor...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/TortoiseHareAlgoTest.java
src/test/java/com/thealgorithms/datastructures/lists/TortoiseHareAlgoTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; class TortoiseHareAlgoTest { @Test void testAppendAndToString() { TortoiseHareAlgo<Integer> list ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/CircleLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/CircleLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; /** * Test cases for QuickSortLinkedList. * Author: Prabhat-Kumar-42 * GitHub: https://github.com/Prabhat-Kumar...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/lists/MergeSortedSinglyLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/lists/MergeSortedSinglyLinkedListTest.java
package com.thealgorithms.datastructures.lists; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; class MergeSortedSinglyLinkedListTest { @Test void testMergeTwoSortedLists() { SinglyLinkedList...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/IndexedPriorityQueueTest.java
src/test/java/com/thealgorithms/datastructures/heaps/IndexedPriorityQueueTest.java
package com.thealgorithms.datastructures.heaps; import java.util.Comparator; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** * Tests for {@link IndexedPriorityQueue}. * * Notes: * - We mainly use a Node class with a mutable "prio" field to test changeKey/decreaseKey/increaseKey. *...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/MaxHeapTest.java
src/test/java/com/thealgorithms/datastructures/heaps/MaxHeapTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; i...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/MergeKSortedArraysTest.java
src/test/java/com/thealgorithms/datastructures/heaps/MergeKSortedArraysTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; public class ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/LeftistHeapTest.java
src/test/java/com/thealgorithms/datastructures/heaps/LeftistHeapTest.java
package com.thealgorithms.datastructures.heaps; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class LeftistHeapTest { @Test void testIsEmpty() { LeftistHeap heap = new LeftistHeap(); Assertions.assertTrue(heap.isEmpty(), "Heap should be empty initially.");...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/GenericHeapTest.java
src/test/java/com/thealgorithms/datastructures/heaps/GenericHeapTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/MinHeapTest.java
src/test/java/com/thealgorithms/datastructures/heaps/MinHeapTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; i...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/HeapElementTest.java
src/test/java/com/thealgorithms/datastructures/heaps/HeapElementTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; class HeapElementTest { @Test void testCo...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/MedianFinderTest.java
src/test/java/com/thealgorithms/datastructures/heaps/MedianFinderTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class MedianFinderTest { @Test public void testMedianMaintenance() { MedianFinder mf = new MedianFinder(); mf.addNum(1); mf.addNum(2);...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/MinPriorityQueueTest.java
src/test/java/com/thealgorithms/datastructures/heaps/MinPriorityQueueTest.java
package com.thealgorithms.datastructures.heaps; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class MinPriorityQueueTest { @Test void testInsertAndPeek() { MinPriorityQueue queue = new MinPriorityQueue(5); queue.insert(10); queue.insert(5); ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/FibonacciHeapTest.java
src/test/java/com/thealgorithms/datastructures/heaps/FibonacciHeapTest.java
package com.thealgorithms.datastructures.heaps; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class FibonacciHeapTest { @Test void testHeapInsertionAndMinimum() { FibonacciHeap fibonacciHeap = new FibonacciHeap(); fibonacciHeap.insert(5); fibonacci...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/heaps/KthElementFinderTest.java
src/test/java/com/thealgorithms/datastructures/heaps/KthElementFinderTest.java
package com.thealgorithms.datastructures.heaps; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class KthElementFinderTest { @Test public void testFindKthLargest() { int[] nums = {3, 2, 1, 5, 6, 4}; assertEquals(5, KthElementFinder.findKt...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/stacks/ReverseStackTest.java
src/test/java/com/thealgorithms/datastructures/stacks/ReverseStackTest.java
package com.thealgorithms.datastructures.stacks; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Stack; import org.junit.jupiter.api.Test; class ReverseStackTest { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/stacks/StackArrayTest.java
src/test/java/com/thealgorithms/datastructures/stacks/StackArrayTest.java
package com.thealgorithms.datastructures.stacks; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class StackArrayTest { private Stack<Integer> stack; @BeforeEach void setUp() { stack = new StackArray<>(5); // Initialize a stack...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/stacks/StackOfLinkedListTest.java
src/test/java/com/thealgorithms/datastructures/stacks/StackOfLinkedListTest.java
package com.thealgorithms.datastructures.stacks; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.NoSuchElementException; import org.junit.jupiter.api.BeforeEach; import ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/stacks/NodeStackTest.java
src/test/java/com/thealgorithms/datastructures/stacks/NodeStackTest.java
package com.thealgorithms.datastructures.stacks; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; impor...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/stacks/StackArrayListTest.java
src/test/java/com/thealgorithms/datastructures/stacks/StackArrayListTest.java
package com.thealgorithms.datastructures.stacks; import java.util.EmptyStackException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class StackArrayListTest { private StackArrayList<Integer> stack; @BeforeEach void setUp() { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Rand...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/ImmutableHashMapTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/ImmutableHashMapTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupi...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.j...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.j...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/HashMapCuckooHashingTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/HashMapCuckooHashingTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.jun...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; public class MajorityElementTest { @Test void testMajorityWithSingleMajori...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/IntersectionTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/IntersectionTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import org.junit.jupiter.api.Test; public class IntersectionTest { @Test void testBasicIntersection() { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/HashMapTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/HashMapTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; public class HashMapTest { @Test public void testInsertAndSearch() { HashMap<Integer, S...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/LinearProbingHashMapTest.java
src/test/java/com/thealgorithms/datastructures/hashmap/hashing/LinearProbingHashMapTest.java
package com.thealgorithms.datastructures.hashmap.hashing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class LinearProbingHashMapTest extends MapTe...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/SlidingWindowMaximumTest.java
src/test/java/com/thealgorithms/datastructures/queues/SlidingWindowMaximumTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; public class...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/QueueByTwoStacksTest.java
src/test/java/com/thealgorithms/datastructures/queues/QueueByTwoStacksTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.NoSuchElementException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class QueueByTwoStacks...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/LinkedQueueTest.java
src/test/java/com/thealgorithms/datastructures/queues/LinkedQueueTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Iterator; import java.util.NoSuchElementException; import org.junit.jupi...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/TokenBucketTest.java
src/test/java/com/thealgorithms/datastructures/queues/TokenBucketTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class TokenBucketTest { @Test public void testRateLimiter() throws InterruptedException { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/PriorityQueuesTest.java
src/test/java/com/thealgorithms/datastructures/queues/PriorityQueuesTest.java
package com.thealgorithms.datastructures.queues; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class PriorityQueuesTest { @Test void testPQInsertion() { PriorityQueue myQueue = new PriorityQueue(4); myQueue.insert(2); Assertions.assertEquals(myQueue.peek(...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/QueueTest.java
src/test/java/com/thealgorithms/datastructures/queues/QueueTest.java
package com.thealgorithms.datastructures.queues; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class QueueTest { private static final int INITIAL_CAPACITY = 3; private Queue<Integer> queue; @BeforeEach void setUp() { ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/CircularQueueTest.java
src/test/java/com/thealgorithms/datastructures/queues/CircularQueueTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class CircularQueueTest { @Test void testEnQ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/GenericArrayListQueueTest.java
src/test/java/com/thealgorithms/datastructures/queues/GenericArrayListQueueTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.T...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/queues/DequeTest.java
src/test/java/com/thealgorithms/datastructures/queues/DequeTest.java
package com.thealgorithms.datastructures.queues; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import java.util.NoSuchElementException; import org.junit.jupiter.api.Test; class DequeT...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java
src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.time.Instant; import org.junit.jupiter.api.Test; class LWWElementSetTest { @Test void testAddElement() { LWWElementSet<Str...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java
src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class PNCounterTest { @Test public void...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java
src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Set; import org.junit.jupiter.api.Test; class ORSetTest { @Test ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java
src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class GCounterTest { @Test void incremen...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java
src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class GSetTest { @Test void testAddElement() { GSet<String> gSet = new GSet<>(); gSet.addEl...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java
src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java
package com.thealgorithms.datastructures.crdt; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class TwoPSetTest { private TwoPSet<String> set; @BeforeEach ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java
src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java
package com.thealgorithms.datastructures.buffers; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class CircularBufferTest { @Test void testIn...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/BellmanFordTest.java
src/test/java/com/thealgorithms/datastructures/graphs/BellmanFordTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; /** * Unit tests for the BellmanFord algorithm implementation. * Tests cover various graph scenarios includi...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/PrimMSTTest.java
src/test/java/com/thealgorithms/datastructures/graphs/PrimMSTTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test; public class PrimMSTTest { private final PrimMST primMST = new PrimMST(); @Test public void testSimpleGraph() { // Test graph with 5 nodes and we...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/JohnsonsAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/JohnsonsAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; /** * Unit tests for {@link JohnsonsAlgorith...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/KahnsAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/KahnsAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.ArrayList; import org.junit.jupiter.api.Test; class KahnsAlgorithmTest { @Test void testBasicGraph() { // T...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/DijkstraAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/DijkstraAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; publ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/BipartiteGraphDFSTest.java
src/test/java/com/thealgorithms/datastructures/graphs/BipartiteGraphDFSTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import org.junit.jupiter.api.Test; public class BipartiteGraphDFSTest { // Helper method to create an adjacency list...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/TarjansAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/TarjansAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; public class TarjansAlgorithmTest { private final TarjansAlgorithm tarjansAlgo = new Tarjan...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/KosarajuTest.java
src/test/java/com/thealgorithms/datastructures/graphs/KosarajuTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; public class KosarajuTest { private final Kosaraju kosaraju = new Kosaraju(); @Test ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/KruskalTest.java
src/test/java/com/thealgorithms/datastructures/graphs/KruskalTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import org.junit.jupiter.api.BeforeEach; import...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/AStarTest.java
src/test/java/com/thealgorithms/datastructures/graphs/AStarTest.java
package com.thealgorithms.datastructures.graphs; import static java.util.Collections.singletonList; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import java.util.ArrayList; import java.util.Arrays; import org.junit.jupiter.api.BeforeEach; impo...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java
src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test; class HamiltonianCycleTest { private final HamiltonianCycle hamiltonianCycle = new HamiltonianCycle(); @Test void testFindHamiltonianCycleShouldReturnHam...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/ConnectedComponentTest.java
src/test/java/com/thealgorithms/datastructures/graphs/ConnectedComponentTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; /** * Unit tests for the Graph class in ConnectedComponent.java. * Tests the depth-first search implementati...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import com.thealgorithms.datastructures.graphs.BoruvkaAlgorithm.Graph; import java.util....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/FloydWarshallTest.java
src/test/java/com/thealgorithms/datastructures/graphs/FloydWarshallTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test; class FloydWarshallTest { @Test void testSmallGraph() { int[][] adjacencyMatrix = {{0, 0, 0, 0}, // Ignored row (0 index) {0, 0, 3, FloydW...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/DialsAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/DialsAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import o...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/MatrixGraphsTest.java
src/test/java/com/thealgorithms/datastructures/graphs/MatrixGraphsTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.Test; class...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/TwoSatTest.java
src/test/java/com/thealgorithms/datastructures/graphs/TwoSatTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; /** * Testcases for 2-SAT. * Please note thea ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/WelshPowellTest.java
src/test/java/com/thealgorithms/datastructures/graphs/WelshPowellTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import com.thealgorithms.datastructures.graphs.WelshPowell.Graph; import java.util.Array...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/EdmondsBlossomAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/EdmondsBlossomAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import java.util.Collection; import java.util.Collections;...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/DijkstraOptimizedAlgorithmTest.java
src/test/java/com/thealgorithms/datastructures/graphs/DijkstraOptimizedAlgorithmTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class DijkstraOptimizedAlgorithmTest { private Dijkst...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/graphs/FordFulkersonTest.java
src/test/java/com/thealgorithms/datastructures/graphs/FordFulkersonTest.java
package com.thealgorithms.datastructures.graphs; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class FordFulkersonTest { @Test public void testMaxFlow() { int vertexCount = 6; int[][] capacity = new int[vertexCount][vertexCount]; ...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/caches/LFUCacheTest.java
src/test/java/com/thealgorithms/datastructures/caches/LFUCacheTest.java
package com.thealgorithms.datastructures.caches; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; class LFUCacheTest { @Test void testLFUCach...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/caches/MRUCacheTest.java
src/test/java/com/thealgorithms/datastructures/caches/MRUCacheTest.java
package com.thealgorithms.datastructures.caches; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; public class MRUCacheTest { private static final int SIZE = 5; @Test public void putAndGetIntegerVa...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/caches/LRUCacheTest.java
src/test/java/com/thealgorithms/datastructures/caches/LRUCacheTest.java
package com.thealgorithms.datastructures.caches; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class LRUCacheTest { private static final int SIZE = 5; p...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/caches/RRCacheTest.java
src/test/java/com/thealgorithms/datastructures/caches/RRCacheTest.java
package com.thealgorithms.datastructures.caches; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Random; import java.util.Set; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api....
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false
TheAlgorithms/Java
https://github.com/TheAlgorithms/Java/blob/e945f1622490ff3b32e59d31780df27d0dc2ede4/src/test/java/com/thealgorithms/datastructures/caches/FIFOCacheTest.java
src/test/java/com/thealgorithms/datastructures/caches/FIFOCacheTest.java
package com.thealgorithms.datastructures.caches; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; impo...
java
MIT
e945f1622490ff3b32e59d31780df27d0dc2ede4
2026-01-04T14:45:56.733479Z
false