ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
DataFileException_TEST.cpp
Go to the documentation of this file.
00001  #include "DataFileException_TEST.h"
00002 
00003 bool DataFileException_TEST::DataFileException_ThrowsCorrectString_AssertTrue() const
00004 {
00005   try
00006     {
00007       throw DataFileException("qwerty");
00008     }
00009   catch(exception& e)
00010     {
00011       string s(e.what());
00012       assert(s.compare("qwerty")==0);
00013     }
00014   return true;
00015 }
00016 
00017 int DataFileException_TEST::runUnitTests() const
00018 {
00019   cout << "Running unit tests on DataFileException...";
00020   if(!DataFileException_ThrowsCorrectString_AssertTrue())
00021     return 1;
00022   cout << "done" << endl;
00023   return 0;
00024 }
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark