Closed yashksaini-coder closed 2 weeks ago
👋 Thank you for opening this pull request! We're excited to review your contribution. Please give us a moment, and we'll get back to you shortly!
Feel free to join our community on Discord to discuss more!
✅ Closes: #456
This pull request enhances the test coverage for various algorithms by adding new test cases to handle edge cases and invalid inputs. The changes improve the robustness of the test suite by ensuring that the algorithms correctly handle these scenarios.
New Test Cases for Edge Cases and Invalid Inputs:
Graph Algorithms:
Tests/algorithms/test_adjacency_matrix.py
: Addedtest_empty_graph
to verify the creation of an empty graph.Tests/algorithms/test_astar.py
: Addedtest_unreachable_destination
to ensure the algorithm returnsNone
for unreachable destinations.Tests/algorithms/test_bellman_ford.py
: Addedtest_negative_cycle
to check for proper handling of graphs with negative cycles.Tests/algorithms/test_bfs.py
: Addedtest_single_node
to verify BFS on a graph with a single node.Tests/algorithms/test_dijkstra.py
: Addedtest_single_node
to validate Dijkstra's algorithm on a graph with a single node.Tests/algorithms/test_depth_first_search.py
: Addedtest_single_node
to ensure DFS handles a graph with a single node correctly.Tests/algorithms/test_prim.py
: Addedtest_single_node
to check Prim's algorithm on a graph with a single node.Tests/algorithms/test_kruskals.py
: Addedtest_disconnected_graph
to validate Kruskal's algorithm on a disconnected graph.Tests/algorithms/test_floyds.py
: Addedtest_single_node
to verify Floyd's algorithm on a single-node graph.Tests/algorithms/test_bidirectional_bfs.py
: Addedtest_large_graph
to ensure the algorithm handles large graphs efficiently.Cryptography Algorithms:
Tests/algorithms/test_advanced_encryption_standard.py
: Addedtest_invalid_key_length
to check for invalid key lengths in AES encryption.Tests/algorithms/test_asymmetric_encryption_algorithm.py
: Addedtest_invalid_key_size
to ensure RSA encryption handles unsupported key sizes properly.Tests/algorithms/test_elliptic_curve_cryptography.py
: Addedtest_invalid_curve
to verify ECC encryption with unsupported curves.Other Algorithms:
Tests/algorithms/test_binary_search.py
: Addedtest_repeated_elements
to ensure binary search handles repeated elements correctly.Tests/algorithms/test_fibonacci.py
: Modifiedtest_large_input
to test Fibonacci sequence with a larger input value.Tests/algorithms/test_hashing.py
: Addedtest_empty_data
to verify hashing functions handle empty data correctly.@UTSAVS26 kindly review this PR, and assign
level 3
to it, it is my request.