1
// -*- mode: C++; tab-width: 2; -*-
4
// --------------------------------------------------------------------------
5
// OpenMS Mass Spectrometry Framework
6
// --------------------------------------------------------------------------
7
// Copyright (C) 2003-2011 -- Oliver Kohlbacher, Knut Reinert
9
// This library is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
// --------------------------------------------------------------------------
24
// $Maintainer: Sandro Andreotti $
25
// $Authors: Andreas Bertsch $
26
// --------------------------------------------------------------------------
28
#include <OpenMS/CONCEPT/ClassTest.h>
30
///////////////////////////
31
#include <OpenMS/ANALYSIS/DENOVO/CompNovoIonScoringBase.h>
32
///////////////////////////
34
using namespace OpenMS;
37
START_TEST(CompNovoIonScoringBase, "$Id: CompNovoIonScoringBase_test.C 8215 2011-03-29 14:18:26Z aiche $")
39
/////////////////////////////////////////////////////////////
40
/////////////////////////////////////////////////////////////
42
START_SECTION(CompNovoIonScoringBase())
48
START_SECTION((CompNovoIonScoringBase(const CompNovoIonScoringBase &source)))
54
START_SECTION((virtual ~CompNovoIonScoringBase()))
60
START_SECTION((DoubleReal scoreIsotopes(const PeakSpectrum &CID_spec, PeakSpectrum::ConstIterator it, Size charge)))
66
START_SECTION((CompNovoIonScoringBase& operator=(const CompNovoIonScoringBase &source)))
72
CompNovoIonScoringBase::IonScore * ptr = 0;
73
CompNovoIonScoringBase::IonScore * nullPointer = 0;
74
START_SECTION([CompNovoIonScoringBase::IonScore] IonScore())
75
ptr=new CompNovoIonScoringBase::IonScore();
76
TEST_NOT_EQUAL(ptr, nullPointer)
79
START_SECTION([CompNovoIonScoringBase::IonScore] IonScore(const IonScore &rhs))
80
CompNovoIonScoringBase::IonScore ion_score;
82
TEST_EQUAL(CompNovoIonScoringBase::IonScore(ion_score).s_bion, 5.0)
85
START_SECTION([CompNovoIonScoringBase::IonScore] IonScore& operator=(const IonScore &rhs))
86
CompNovoIonScoringBase::IonScore ion_score, copy;
89
TEST_EQUAL(copy.s_bion, ion_score.s_bion)
92
START_SECTION([CompNovoIonScoringBase::IonScore] virtual ~IonScore())
96
/////////////////////////////////////////////////////////////
97
/////////////////////////////////////////////////////////////