mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 06:37:43 -05:00
* apply clang-format and cmake-format and add style check workflow * add declare package definition * add additional public methods and rename internals * change development verison tag to 1.0.0 * rename internal method * rename public method * rename test var * update copyright and fix comment * typo * run fix-format * fix test function names
13 lines
328 B
C++
13 lines
328 B
C++
#include <fibonacci.h>
|
|
#include <gtest/gtest.h>
|
|
|
|
TEST(FibonacciTests, BasicChecks) {
|
|
ASSERT_TRUE(fibonacci(0) == 0);
|
|
ASSERT_TRUE(fibonacci(1) == 1);
|
|
ASSERT_TRUE(fibonacci(2) == 1);
|
|
ASSERT_TRUE(fibonacci(3) == 2);
|
|
ASSERT_TRUE(fibonacci(4) == 3);
|
|
ASSERT_TRUE(fibonacci(5) == 5);
|
|
ASSERT_TRUE(fibonacci(13) == 233);
|
|
}
|