Skip to content
Snippets Groups Projects
Commit 6f9e1caf authored by Josselin Massot's avatar Josselin Massot
Browse files

Mise en place des tests

git-svn-id: svn+ssh://svn.in2p3.fr/class@807 0e7d625b-0364-4367-a6be-d5be4a48d228
parent e9ff623e
No related branches found
No related tags found
No related merge requests found
#include <gtest/gtest.h>
#include "test_iv.inl"
int main(int argc,char * argv[]) {
::testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
// COMPILATION
// g++ -o CLASS_test test.cxx -I $CLASS_include -L $CLASS_lib -lCLASSpkg `root-config --cflags` `root-config --libs` -fopenmp -lgomp -lTMVA -lgtest
#include "CLASSHeaders.hxx"
#include <sstream>
#include <iomanip>
#include <math.h>
#include <string>
#include "XS/XSM_MLP.hxx" //Load the include for Neural network cross section predictor
#include "Irradiation/IM_RK4.hxx" //Load the include for Runge Kutta 4 resolution
#include "Equivalence/EQM_MLP_Kinf.hxx" //Load the include for Neural Network Equivalence Model (PWRMOX)
TEST ( TestIV, getSize ) {
const int n=10;
// génération des données
IsotopicVector iv;
for ( unsigned int i = 0 ; i < n ; ++i )
{
ZAI z(i,i+1,i+2);
iv.Add(z,i+3.141592653589);
}
EXPECT_EQ( iv.GetZAIQuantity() , n );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment