Adding testing stubs. Added basic Vector3 functionality.
This commit is contained in:
parent
074862ea6c
commit
7edaf675b1
6 changed files with 30 additions and 7 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef __DEBUG_H__
|
||||||
|
#define __DEBUG_H__
|
||||||
|
|
||||||
|
// TODO: add assert macros and maybe some simple logging functionality
|
||||||
|
|
||||||
|
#endif //__DEBUG_H__
|
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
|
@ -6,3 +6,4 @@
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!main.cpp
|
!main.cpp
|
||||||
!premake4.lua
|
!premake4.lua
|
||||||
|
!*.h
|
1
tests/UnitTest.h
Normal file
1
tests/UnitTest.h
Normal file
|
@ -0,0 +1 @@
|
||||||
|
// TODO: look into using a library, or just create something really simple for testing.
|
11
tests/Vector3Tests.h
Normal file
11
tests/Vector3Tests.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#ifndef __VECTOR3TESTS_H__
|
||||||
|
#define __VECTOR3TESTS_H__
|
||||||
|
|
||||||
|
# include "UnitTest.h"
|
||||||
|
|
||||||
|
class Vector3Tests // inherit from UnitTest
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //__VECTOR3TESTS_H__
|
|
@ -1,6 +1,10 @@
|
||||||
#include "math/Vector3.h"
|
#include "math/Vector3.h"
|
||||||
|
|
||||||
|
// Testing Headers
|
||||||
|
#include "Vector3Tests.h"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
|
@ -35,6 +35,11 @@ solution "tests"
|
||||||
"../include",
|
"../include",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configuration { "x64", "debug" }
|
||||||
|
targetsuffix "x64_d"
|
||||||
|
configuration { "x64", "release" }
|
||||||
|
targetsuffix "x64"
|
||||||
|
|
||||||
configuration "Debug"
|
configuration "Debug"
|
||||||
defines { "DEBUG", "USE_CHEATS", "TRACE" }
|
defines { "DEBUG", "USE_CHEATS", "TRACE" }
|
||||||
flags { "Symbols" }
|
flags { "Symbols" }
|
||||||
|
@ -43,8 +48,3 @@ solution "tests"
|
||||||
configuration "Release"
|
configuration "Release"
|
||||||
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
|
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
|
||||||
flags { "Optimize" }
|
flags { "Optimize" }
|
||||||
|
|
||||||
configuration { "x64", "debug" }
|
|
||||||
targetsuffix "x64_d"
|
|
||||||
configuration { "x64", "release" }
|
|
||||||
targetsuffix "x64"
|
|
Loading…
Add table
Add a link
Reference in a new issue