From: Carsten Niehaus Date: Sun, 19 Feb 2006 15:29:14 +0000 (+0000) Subject: reactivate the isotopes-reading-test X-Git-Tag: v3.80.2~171 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=0213692984f3b607c3522564ac71a02fabcfaa4b;p=libqmvoc.git reactivate the isotopes-reading-test svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=511331 --- diff --git a/libscience/tests/Makefile.am b/libscience/tests/Makefile.am index e78896f..87b857c 100644 --- a/libscience/tests/Makefile.am +++ b/libscience/tests/Makefile.am @@ -2,15 +2,15 @@ INCLUDES = -I$(top_srcdir)/libkdeedu/libscience $(all_includes) AM_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(KDE_RPATH) -check_PROGRAMS = xmlreadingtest isotopereadingtest cmlspectest +check_PROGRAMS = xmlreadingtest isotopereadingtest #cmlspectest xmlreadingtest_SOURCES = xmlreadingtest.cpp xmlreadingtest_LDFLAGS = $(all_libraries) xmlreadingtest_LDADD = ../libscience.la -#isotopereadingtest_SOURCES = isotopereadingtest.cpp -#isotopereadingtest_LDFLAGS = $(all_libraries) -#isotopereadingtest_LDADD = ../libscience.la +isotopereadingtest_SOURCES = isotopereadingtest.cpp +isotopereadingtest_LDFLAGS = $(all_libraries) +isotopereadingtest_LDADD = ../libscience.la #cmlspectest_SOURCES = cmlspectest.cpp #cmlspectest_LDFLAGS = $(all_libraries) diff --git a/libscience/tests/isotopereadingtest.cpp b/libscience/tests/isotopereadingtest.cpp index 6cf5187..de603a1 100644 --- a/libscience/tests/isotopereadingtest.cpp +++ b/libscience/tests/isotopereadingtest.cpp @@ -2,6 +2,7 @@ #include "../isotopeparser.h" #include "../isotope.h" +#include "../chemicaldataobject.h" #include #include @@ -22,6 +23,8 @@ int main(int argc, char *argv[]) QList v = parser->getIsotopes(); + kDebug() << "# of Isotopes found: " << v.count() << endl; + foreach( Isotope* e, v ){ if ( e ) {