CbmRoot
_GTestCbmConstants.cxx
Go to the documentation of this file.
1
#include "
CbmDefs.h
"
2
3
#include <Rtypes.h>
4
5
#include <gtest/gtest-spi.h>
6
#include <gtest/gtest.h>
7
8
TEST
(_GTestCbmConstants, CheckParticleMasses) {
9
Double_t protonMass = 0.938272046;
10
Double_t neutronMass = 0.939565379;
11
Double_t electronMass = 0.000510998928;
12
13
EXPECT_EQ(protonMass,
CbmProtonMass
());
14
EXPECT_EQ(neutronMass,
CbmNeutronMass
());
15
EXPECT_EQ(electronMass,
CbmElectronMass
());
16
}
TEST
TEST(_GTestCbmConstants, CheckParticleMasses)
Definition:
_GTestCbmConstants.cxx:8
CbmNeutronMass
Double_t CbmNeutronMass()
Definition:
CbmDefs.h:135
CbmProtonMass
Double_t CbmProtonMass()
Definition:
CbmDefs.h:134
CbmElectronMass
Double_t CbmElectronMass()
Definition:
CbmDefs.h:136
CbmDefs.h
core
data
test
_GTestCbmConstants.cxx
Generated on Wed Oct 28 2020 15:11:33 for CbmRoot by
1.8.18