// This file is generated by mkfile.py
// Date: 2025-12-05

#include <gtest/gtest.h>
#include <solution/509.h>
// Tests for fib (LeetCode 509)
class FibTest : public ::testing::Test
{
  protected:
    void AssertFib(int n, int expected)
    {
        ASSERT_EQ(fib(n), expected);
    }
};

TEST_F(FibTest, Zero)
{
    AssertFib(0, 0);
}

TEST_F(FibTest, One)
{
    AssertFib(1, 1);
}

TEST_F(FibTest, Two)
{
    AssertFib(2, 1);
}

TEST_F(FibTest, Ten)
{
    AssertFib(10, 55);
}

TEST_F(FibTest, Twenty)
{
    AssertFib(20, 6765);
}
