<commit_before>// $Id: CreateSpectrumProcessor_test.C,v 1.4 2000/09/27 12:01:03 oliver Exp $
#include <BALL/CONCEPT/classTest.h>

///////////////////////////

#include <BALL/NMR/createSpectrumProcessor.h>
#include <BALL/FORMAT/HINFile.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/NMR/shiftModel.h>
#include <BALL/STRUCTURE/defaultProcessors.h>

///////////////////////////

START_TEST(CreateSpectrumProcessor, "$Id: CreateSpectrumProcessor_test.C,v 1.4 2000/09/27 12:01:03 oliver Exp $")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace BALL;

CreateSpectrumProcessor* sp = 0;
CHECK(CreateSpectrumProcessor::CreateSpectrumProcessor() throw())
	sp = new CreateSpectrumProcessor;
	TEST_NOT_EQUAL(sp, 0)
RESULT

CHECK(CreateSpectrumProcessor::~CreateSpectrumProcessor() throw())
  delete sp;
RESULT

CHECK(CreateSpectrumProcessor::start() throw())
  //BAUSTELLE
RESULT

CHECK(CreateSpectrumProcessor::operator () (Atom& atom) throw())
  //BAUSTELLE
RESULT

CHECK(CreateSpectrumProcessor::finish() throw())
  //BAUSTELLE
RESULT

HINFile f("data/CreateSpectrumProcessor_test.hin");
System S;
f >> S;
ShiftModel sm("data/ShiftModel_test.ini");
S.apply(sm);

CHECK(list<Peak1D>& getPeakList())
	CreateSpectrumProcessor csp;
	TEST_EQUAL(S.apply(csp), true)
	TEST_EQUAL(csp.getPeakList().size(), 15)
RESULT

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
<commit_msg>fixed: removed incorrect tests - waiting for class design to be finished<commit_after>// $Id: CreateSpectrumProcessor_test.C,v 1.5 2000/10/07 11:05:49 oliver Exp $
#include <BALL/CONCEPT/classTest.h>

///////////////////////////

#include <BALL/NMR/createSpectrumProcessor.h>
#include <BALL/FORMAT/HINFile.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/NMR/shiftModel.h>
#include <BALL/STRUCTURE/defaultProcessors.h>

///////////////////////////

START_TEST(CreateSpectrumProcessor, "$Id: CreateSpectrumProcessor_test.C,v 1.5 2000/10/07 11:05:49 oliver Exp $")

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace BALL;

CreateSpectrumProcessor* sp = 0;
CHECK(CreateSpectrumProcessor::CreateSpectrumProcessor() throw())
	sp = new CreateSpectrumProcessor;
	TEST_NOT_EQUAL(sp, 0)
RESULT

CHECK(CreateSpectrumProcessor::~CreateSpectrumProcessor() throw())
  delete sp;
RESULT

CHECK(CreateSpectrumProcessor::start() throw())
  //BAUSTELLE
RESULT

CHECK(CreateSpectrumProcessor::operator () (Atom& atom) throw())
  //BAUSTELLE
RESULT

CHECK(CreateSpectrumProcessor::finish() throw())
  //BAUSTELLE
RESULT

HINFile f("data/CreateSpectrumProcessor_test.hin");
System S;
f >> S;
ShiftModel sm("data/ShiftModel_test.ini");
S.apply(sm);

CHECK(list<Peak1D>& getPeakList())
	// BAUSTELLE
RESULT

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST

{'fraction_non_alphanumeric': 0.30310965630114567, 'fraction_numerical': 0.023567921440261867, 'mean_word_length': 2.3073593073593073, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1072852', 'n_tokens_mistral': 969, 'n_tokens_neox': 889, 'n_words': 165}