Skip to content

Commit

Permalink
DCP #146 (2024-12-11): Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
eminencegrs committed Dec 15, 2024
1 parent 4e86ae3 commit d5e3624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace DailyCodingProblem.Challenges.Y2024.M12.Day11;

public static class Solution
public static class DfsSolution
{
public static TreeNode? PruneTree(TreeNode? root)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace DailyCodingProblem.Challenges.UnitTests.Y2024.M12.Day11;

public class SolutionTests
public class DfsSolutionTests
{
[Theory]
[MemberData(nameof(TestData))]
public void GivenTreeNode_WhenPruneTree_ThenResultAsExpected(TreeNode root, TreeNode expected)
{
Solution.PruneTree(root).ShouldBeEquivalentTo(expected);
DfsSolution.PruneTree(root).ShouldBeEquivalentTo(expected);
}

public static IEnumerable<object[]> TestData()
Expand Down

0 comments on commit d5e3624

Please sign in to comment.