CbmRoot
Loading...
Searching...
No Matches
_GTestCbmConstants.cxx
Go to the documentation of this file.
1/* Copyright (C) 2016-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#include "CbmDefs.h"
6
7#include <Rtypes.h>
8
9#include <gtest/gtest-spi.h>
10#include <gtest/gtest.h>
11
12TEST(_GTestCbmConstants, CheckParticleMasses)
13{
14 double protonMass = 0.938272046;
15 double neutronMass = 0.939565379;
16 double electronMass = 0.000510998928;
17
18 EXPECT_EQ(protonMass, CbmProtonMass());
19 EXPECT_EQ(neutronMass, CbmNeutronMass());
20 EXPECT_EQ(electronMass, CbmElectronMass());
21}
double CbmProtonMass()
Definition CbmDefs.h:197
double CbmNeutronMass()
Definition CbmDefs.h:198
double CbmElectronMass()
Definition CbmDefs.h:199
TEST(_GTestCbmConstants, CheckParticleMasses)