Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 9c9dfa4

Browse files
Merge pull request #23 from CMATHL/development
Development
2 parents 5cbfd40 + a111db2 commit 9c9dfa4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cml/include/cml.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
#include <cml/tgmath.h>
1616
#endif
1717

18+
#include <cml/const.h>
19+
#include <cml/complex.h>
1820
#include <cml/deriv.h>
1921
#include <cml/diff.h>
2022
#include <cml/easings.h>
2123
#include <cml/quaternion.h>
22-
#include <cml/structures.h>
2324

2425
#endif

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/cml/include)
22

3-
ADD_EXECUTABLE(test_cml main.c complex.c deriv.c diff.c easings.c structures.c real.c)
3+
ADD_EXECUTABLE(test_cml main.c complex.c deriv.c diff.c easings.c quaternion.c real.c)
44
TARGET_LINK_LIBRARIES(test_cml cml ${LIBM})
55
ADD_TEST(NAME test_cml COMMAND test_cml)

test/structures.c renamed to test/quaternion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdarg.h>
44
#include <stdio.h>
55
#include <cml/math.h>
6-
#include <cml/structures.h>
6+
#include <cml/quaternion.h>
77
#include "include/test.h"
88

99

@@ -28,7 +28,7 @@ run_struct_tests()
2828
TEST_BEGIN(Conjugate)
2929
{
3030
cml_quaternion_t qA = cml_quaternion_from_axis_anglef3(M_TAU / 4.0, 1.0, 1.0, 1.0),
31-
qB = cml_quaternion_from_axis_anglef3(M_TAU / 4.0, -1.0, -1.0, -1.0);
31+
qB = cml_quaternion_from_axis_anglef3(M_TAU / 4.0, -1.0, -1.0, -1.0);
3232

3333
EXPECT_TRUE(cml_quaternion_equal(qA, cml_quaternion_conj(qB)));
3434
}

0 commit comments

Comments
 (0)