Skip to content

[REFACTOR] #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,9 @@ public class ArraysLeftRotationTest
{
public class ArraysLeftRotationsTestCase(List<int> input, int d_rotations, List<int> expected)
{
private List<int> input = input;
private int d_rotations = d_rotations;
private List<int> expected = expected;

public List<int> Input
{
get { return input; }
}
public int D_rotations
{
get { return d_rotations; }
}
public List<int> Expected
{
get { return expected; }
}
public List<int> Input { get; } = input;
public int D_rotations { get; } = d_rotations;
public List<int> Expected { get; } = expected;
}

private List<ArraysLeftRotationsTestCase> testCases = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,10 @@ public class CrushBruteForceTest
{
public class CrushBruteForceTestCase(string title, List<List<int>> queries, int n, long expected)
{
private string title = title;
private List<List<int>> queries = queries;
private int n = n;
private long expected = expected;
public string Title
{
get { return title; }
}
public List<List<int>> Queries
{
get { return queries; }
}
public int N
{
get { return n; }
}
public long Expected
{
get { return expected; }
}
public string Title { get; } = title;
public List<List<int>> Queries { get; } = queries;
public int N { get; } = n;
public long Expected { get; } = expected;
}

private List<CrushBruteForceTestCase> testCases { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,10 @@ public class CrushOptimizedTest
{
public class CrushOptimizedTestCase(string title, List<List<int>> queries, int n, long expected)
{
private string title = title;
private List<List<int>> queries = queries;
private int n = n;
private long expected = expected;
public string Title
{
get { return title; }
}
public List<List<int>> Queries
{
get { return queries; }
}
public int N
{
get { return n; }
}
public long Expected
{
get { return expected; }
}
public string Title { get; } = title;
public List<List<int>> Queries { get; } = queries;
public int N { get; } = n;
public long Expected { get; } = expected;
}

private List<CrushOptimizedTestCase> testCases { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,9 @@ public class NewYearChaosTest
{
public class NewYearChaosTestCase(string title, int[] input, string expected)
{
private readonly string title = title;
private readonly List<int> input = [.. input];
private readonly string expected = expected;

public string Title
{
get { return title; }
}

public List<int> Input
{
get { return input; }
}

public string Expected
{
get { return expected; }
}
public string Title { get; } = title;
public List<int> Input { get; } = [.. input];
public string Expected { get; } = expected;
}

private List<NewYearChaosTestCase> testCases { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,9 @@ public class TwoDArrayTest
{
public class TwoDArrayTestCase(string title, List<List<int>> input, long expected)
{
private string title = title;
private List<List<int>> input = input;
private long expected = expected;

public string Title
{
get { return title; }
}
public List<List<int>> Input
{
get { return input; }
}
public long Expected
{
get { return expected; }
}
public string Title { get; } = title;
public List<List<int>> Input { get; } = input;
public long Expected { get; } = expected;
}

private List<TwoDArrayTestCase> testCases { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,10 @@ public class LuckBalanceTest
{
public class LuckBalanceTestCase(string title, int k, List<List<int>> contests, int expected)
{
private string title = title;
private int k = k;
private List<List<int>> contests = contests;
private int expected = expected;

public string Title
{
get { return title; }
}
public int K
{
get { return k; }
}
public List<List<int>> Contests
{
get { return contests; }
}
public int Expected
{
get { return expected; }
}
public string Title { get; } = title;
public int K { get; } = k;
public List<List<int>> Contests { get; } = contests;
public int Expected { get; } = expected;
}

private List<LuckBalanceTestCase> testCases { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,9 @@ public class MinimumAbsoluteDifferenceInAnArrayTest
{
public class MinimumAbsoluteDifferenceInAnArrayTestCase(string title, List<int> input, int expected)
{
private readonly string title = title;
private readonly List<int> input = [.. input];
private readonly int expected = expected;

public string Title
{
get { return title; }
}
public List<int> Input
{
get { return input; }
}
public int Expected
{
get { return expected; }
}
public string Title { get; } = title;
public List<int> Input { get; } = [.. input];
public int Expected { get; } = expected;
}

private List<MinimumAbsoluteDifferenceInAnArrayTestCase> testCases { get; set; } = default!;
Expand Down