Commit 782d6b0b authored by berenger-bramas's avatar berenger-bramas
Browse files

Remove useless convert file (since convert file has been removed)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@112 2616d619-271b-44dc-8df4-d4a8f33a7222
parent ac15839f
#include "FUTester.hpp"
#include "../Src/Utils/FGlobal.hpp"
#include "../Src/Utils/F3DPosition.hpp"
#include "../Src/Containers/FTreeCoordinate.hpp"
#include "../Src/Utils/FConvert.hpp"
#include "../Src/Utils/FMath.hpp"
// compile by g++ utestConvert.cpp -o utestConvert.exe
/**
* This file is a unit test for the FConvert class
*/
/** this class test the list container */
class TestConvert : public FUTester<TestConvert> {
void ValideFMathEqual(){
assert(FMath::LookEqual(0.0001,0.0001));
assert(!FMath::LookEqual(0.0001,0.00011));
assert(FMath::LookEqual(0.0001,0.0000999999999));
}
void ConvertMorton(){
{
const FTreeCoordinate pos(0,1,10);
const F3DPosition posReal;// = FConvert::MortonToPosition(pos.getMortonIndex(5),5,10.0);
assert( FMath::LookEqual(posReal.getX(),FReal(5.0)) );
assert( FMath::LookEqual(posReal.getY(),FReal(15.0)) );
assert( FMath::LookEqual(posReal.getZ(),FReal(105.0)) );
}
}
// set test
void SetTests(){
AddTest(&TestConvert::ValideFMathEqual,"Test Equal");
AddTest(&TestConvert::ConvertMorton,"Test Convert Morton");
}
};
TestClass(TestConvert)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment