Apply clang-format and cmake-format and add style check workflow (#171)

* 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
This commit is contained in:
Lars Melchior
2021-01-06 14:40:33 +01:00
committed by GitHub
parent cf3f62b6f2
commit 1ebbac6332
51 changed files with 728 additions and 593 deletions

View File

@@ -3,7 +3,7 @@
#include <doctest/doctest.h>
#include <fibonacci.h>
TEST_CASE("fibonacci"){
TEST_CASE("fibonacci") {
CHECK(fibonacci(0) == 0);
CHECK(fibonacci(1) == 1);
CHECK(fibonacci(2) == 1);
@@ -13,8 +13,8 @@ TEST_CASE("fibonacci"){
CHECK(fibonacci(13) == 233);
}
TEST_CASE("fastfibonacci"){
for (unsigned i=0; i<25; ++i){
TEST_CASE("fastfibonacci") {
for (unsigned i = 0; i < 25; ++i) {
CHECK(fibonacci(i) == fastFibonacci(i));
}
}