// This file is generated by mkfile.py
// Date: 2026-03-09

#include <gtest/gtest.h>
#include <solution/119.h>
TEST(GetRowTest, Example1)
{
    int returnSize = 0;
    int *result = getRow(3, &returnSize);

    int expected[] = {1, 3, 3, 1};
    ASSERT_EQ(returnSize, 4);
    for (int i = 0; i < returnSize; i++)
    {
        EXPECT_EQ(result[i], expected[i]);
    }

    free(result);
}

TEST(GetRowTest, Example2)
{
    int returnSize = 0;
    int *result = getRow(0, &returnSize);

    int expected[] = {1};
    ASSERT_EQ(returnSize, 1);
    for (int i = 0; i < returnSize; i++)
    {
        EXPECT_EQ(result[i], expected[i]);
    }

    free(result);
}

TEST(GetRowTest, Example3)
{
    int returnSize = 0;
    int *result = getRow(1, &returnSize);

    int expected[] = {1, 1};
    ASSERT_EQ(returnSize, 2);
    for (int i = 0; i < returnSize; i++)
    {
        EXPECT_EQ(result[i], expected[i]);
    }

    free(result);
}