mirror of
https://github.com/devZoGok/vb01.git
synced 2026-09-03 04:23:36 +00:00
reordered source files
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "cameraTest.h"
|
||||
|
||||
#include <cppunit/TestCase.h>
|
||||
#include <cppunit/TestSuite.h>
|
||||
#include <cppunit/TestResult.h>
|
||||
#include <cppunit/TestCaller.h>
|
||||
|
||||
using namespace CppUnit;
|
||||
|
||||
namespace vb01{
|
||||
CameraTest::CameraTest(){
|
||||
}
|
||||
|
||||
void CameraTest::setUp(){
|
||||
cam = new Camera();
|
||||
}
|
||||
|
||||
void CameraTest::tearDown(){
|
||||
delete cam;
|
||||
}
|
||||
|
||||
void CameraTest::testLookAt(){
|
||||
cam->lookAt(Vector3(0, 0, -1));
|
||||
CPPUNIT_ASSERT(cam->getLeft() == Vector3(1, 0, 0));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user