Adding testing stubs. Added basic Vector3 functionality.

This commit is contained in:
Brian 2014-02-19 22:04:04 -07:00
parent 074862ea6c
commit 7edaf675b1
6 changed files with 30 additions and 7 deletions

View file

@ -0,0 +1,6 @@
#ifndef __DEBUG_H__
#define __DEBUG_H__
// TODO: add assert macros and maybe some simple logging functionality
#endif //__DEBUG_H__

3
tests/.gitignore vendored
View file

@ -5,4 +5,5 @@
!.gitignore !.gitignore
!main.cpp !main.cpp
!premake4.lua !premake4.lua
!*.h

1
tests/UnitTest.h Normal file
View file

@ -0,0 +1 @@
// TODO: look into using a library, or just create something really simple for testing.

11
tests/Vector3Tests.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef __VECTOR3TESTS_H__
#define __VECTOR3TESTS_H__
# include "UnitTest.h"
class Vector3Tests // inherit from UnitTest
{
public:
};
#endif //__VECTOR3TESTS_H__

View file

@ -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;
} }

View file

@ -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" }
@ -42,9 +47,4 @@ 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"