Skip to content

Commit

Permalink
Add boilerplate code for future unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinzii committed Mar 3, 2024
1 parent 0da5455 commit fc59cdd
Show file tree
Hide file tree
Showing 17 changed files with 334 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,41 @@ target_link_libraries(${PROJECT_NAME}-compare PRIVATE
gtest::gtest
)

add_executable(${PROJECT_NAME}-exponential)
target_sources(${PROJECT_NAME}-exponential PRIVATE
exponential/exp2_test.cpp
exponential/exp_test.cpp
exponential/expm1_test.cpp
exponential/log1p_test.cpp
exponential/log2_test.cpp
exponential/log10_test.cpp
exponential/log_test.cpp


)
target_link_libraries(${PROJECT_NAME}-exponential PRIVATE
ccmath::test
gtest::gtest
)

add_executable(${PROJECT_NAME}-fmanip)
target_sources(${PROJECT_NAME}-fmanip PRIVATE
fmanip/copysign_test.cpp
fmanip/frexp_test.cpp
fmanip/ilogb_test.cpp
fmanip/ldexp_test.cpp
fmanip/logb_test.cpp
fmanip/modf_test.cpp
fmanip/nextafter_test.cpp
fmanip/scalbn_test.cpp


)
target_link_libraries(${PROJECT_NAME}-fmanip PRIVATE
ccmath::test
gtest::gtest
)

add_executable(${PROJECT_NAME}-nearest)
target_sources(${PROJECT_NAME}-nearest PRIVATE
nearest/trunc_test.cpp
Expand Down Expand Up @@ -92,6 +127,8 @@ endif()
add_test(NAME ${PROJECT_NAME}-basic COMMAND ${PROJECT_NAME}-basic)
add_test(NAME ${PROJECT_NAME}-compare COMMAND ${PROJECT_NAME}-compare)
add_test(NAME ${PROJECT_NAME}-nearest COMMAND ${PROJECT_NAME}-nearest)
add_test(NAME ${PROJECT_NAME}-exponential COMMAND ${PROJECT_NAME}-exponential)
add_test(NAME ${PROJECT_NAME}-fmanip COMMAND ${PROJECT_NAME}-fmanip)



18 changes: 18 additions & 0 deletions test/exponential/exp2_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/exp2.hpp"

TEST(CcmathExponentialTests, Exp2)
{

}
18 changes: 18 additions & 0 deletions test/exponential/exp_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/exp.hpp"

TEST(CcmathExponentialTests, Exp)
{

}
18 changes: 18 additions & 0 deletions test/exponential/expm1_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/expm1.hpp"

TEST(CcmathExponentialTests, Expm1)
{

}
18 changes: 18 additions & 0 deletions test/exponential/log10_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/log10.hpp"

TEST(CcmathExponentialTests, Log10)
{

}
18 changes: 18 additions & 0 deletions test/exponential/log1p_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/log1p.hpp"

TEST(CcmathExponentialTests, Log1p)
{

}
18 changes: 18 additions & 0 deletions test/exponential/log2_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/log2.hpp"

TEST(CcmathExponentialTests, Log2)
{

}
18 changes: 18 additions & 0 deletions test/exponential/log_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/exponential/log.hpp"

TEST(CcmathExponentialTests, Log)
{

}
19 changes: 19 additions & 0 deletions test/fmanip/copysign_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/copysign.hpp"

TEST(CcmathFmanipTests, Copysign)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/frexp_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/frexp.hpp"

TEST(CcmathFmanipTests, Frexp)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/ilogb_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/ilogb.hpp"

TEST(CcmathFmanipTests, ILogb)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/ldexp_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/ldexp.hpp"

TEST(CcmathFmanipTests, Ldexp)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/logb_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/logb.hpp"

TEST(CcmathFmanipTests, Logb)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/modf_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/modf.hpp"

TEST(CcmathFmanipTests, Modf)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/nextafter_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/nextafter.hpp"

TEST(CcmathFmanipTests, Nextafter)
{

}

19 changes: 19 additions & 0 deletions test/fmanip/scalbn_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/scalbn.hpp"

TEST(CcmathFmanipTests, Scalbn)
{

}

19 changes: 19 additions & 0 deletions test/hyperbolic/_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024-Present Ian Pike
* Copyright (c) 2024-Present ccmath contributors
*
* This library is provided under the MIT License.
* See LICENSE for more information.
*/

#include <gtest/gtest.h>

#include <cmath>
#include <limits>
#include "ccmath/detail/fmanip/copysign.hpp"

TEST(CcmathFmanipTests, Copysign)
{

}

0 comments on commit fc59cdd

Please sign in to comment.