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
3
tests/.gitignore
vendored
3
tests/.gitignore
vendored
|
@ -5,4 +5,5 @@
|
|||
|
||||
!.gitignore
|
||||
!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"
|
||||
|
||||
// Testing Headers
|
||||
#include "Vector3Tests.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -35,6 +35,11 @@ solution "tests"
|
|||
"../include",
|
||||
}
|
||||
|
||||
configuration { "x64", "debug" }
|
||||
targetsuffix "x64_d"
|
||||
configuration { "x64", "release" }
|
||||
targetsuffix "x64"
|
||||
|
||||
configuration "Debug"
|
||||
defines { "DEBUG", "USE_CHEATS", "TRACE" }
|
||||
flags { "Symbols" }
|
||||
|
@ -42,9 +47,4 @@ solution "tests"
|
|||
|
||||
configuration "Release"
|
||||
defines { "NDEBUG", "USE_CHEATS", "TRACE" }
|
||||
flags { "Optimize" }
|
||||
|
||||
configuration { "x64", "debug" }
|
||||
targetsuffix "x64_d"
|
||||
configuration { "x64", "release" }
|
||||
targetsuffix "x64"
|
||||
flags { "Optimize" }
|
Loading…
Add table
Add a link
Reference in a new issue