1
0
forked from josh/j3ml

Adding code x3

This commit is contained in:
2023-12-28 16:04:31 -06:00
parent 24cc2e79bc
commit 7e32c2ec62
10 changed files with 71 additions and 27 deletions

View File

@@ -10,10 +10,10 @@ add_library(GTest::GTest INTERFACE IMPORTED)
target_link_libraries(GTest::GTest INTERFACE gtest_main)
file(GLOB_RECURSE TEST_SRC "*.cpp")
file(GLOB_RECURSE TEST_SRC "tests.cpp" "*.cpp")
add_executable(Test ${TEST_SRC})
target_link_libraries(Test PUBLIC J3ML)
#find_package(GTest REQUIRED)
target_link_libraries(Test PRIVATE GTest::GTest)
include_directories("include")
add_test(NAME "J3MLTestSuite" COMMAND J3MLTestSuite)
add_test(NAME "J3MLTestSuite" COMMAND Test)

View File

@@ -2,27 +2,24 @@
#include <J3ML/LinearAlgebra/Vector2.h>
TEST(Vector2Test, V2_Constructor_Default) { }
TEST(Vector2Test, V2_Constructor_Default)
{
EXPECT_EQ(LinearAlgebra::Vector2(), LinearAlgebra::Vector2::Up);
}
/*
TEST(Vector2Test, V2_Addition) { }
TEST(Vector2Test, V2_Subtraction) { }
TEST(Vector2Test, V2_Multiplication) { }
TEST(Vector2Test, V2_Division) { }
TEST(Vector2Test, V2_Equality) { }
TEST(Vector2Test, V2_Array_Operator_Indexing) { }
TEST(Vector2Test, V2_Normalize)
{
}
TEST(Vector2Test, V2_Dot)
{
}
TEST(Vector2Test, V2_Normalize) { }
TEST(Vector2Test, V2_Dot) { }
TEST(Vector2Test, V2_Min) { }
TEST(Vector2Test, V2_Max) { }
TEST(Vector2Test, V2_Distance) { }
TEST(Vector2Test, V2_Length) { }
TEST(Vector2Test, V2_Clamp) { }
TEST(Vector2Test, V2_Clamp) { }
*/

View File

@@ -4,4 +4,13 @@
GTEST_API_ int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
}
#ifdef __WIN32
extern "C" {
int wmain(int argc, wchar_t* argv[])
{
return main(argc, reinterpret_cast<char **>(argv));
}
};
#endif