Skip to content

Commit

Permalink
Add TEST_IGNORE() for all tests except the first
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Jan 28, 2024
1 parent 63c100f commit fc54fbc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exercises/practice/spiral-matrix/test_spiral_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ static void test_empty_spiral(void)

static void test_trivial_spiral(void)
{
TEST_IGNORE(); // delete this line to run test

int expected_matrix[1][1] = {
{ 1 },
};
Expand All @@ -53,6 +55,8 @@ static void test_trivial_spiral(void)

static void test_spiral_of_size_2(void)
{
TEST_IGNORE();

int expected_matrix[2][2] = {
{ 1, 2 },
{ 4, 3 },
Expand All @@ -65,6 +69,8 @@ static void test_spiral_of_size_2(void)

static void test_spiral_of_size_3(void)
{
TEST_IGNORE();

int expected_matrix[3][3] = {
{ 1, 2, 3 },
{ 8, 9, 4 },
Expand All @@ -78,6 +84,8 @@ static void test_spiral_of_size_3(void)

static void test_spiral_of_size_4(void)
{
TEST_IGNORE();

int expected_matrix[4][4] = {
{ 1, 2, 3, 4 },
{ 12, 13, 14, 5 },
Expand All @@ -92,6 +100,8 @@ static void test_spiral_of_size_4(void)

static void test_spiral_of_size_5(void)
{
TEST_IGNORE();

int expected_matrix[5][5] = {
{ 1, 2, 3, 4, 5 }, //
{ 16, 17, 18, 19, 6 }, //
Expand Down

0 comments on commit fc54fbc

Please sign in to comment.