Changeset c52abd


Ignore:
Timestamp:
Jun 22, 2018, 7:26:30 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.6.1, ChemicalSpaceEvaluator
Children:
883599
Parents:
d661b2
git-author:
Frederik Heber <frederik.heber@…> (10/05/17 17:54:04)
git-committer:
Frederik Heber <frederik.heber@…> (06/22/18 07:26:30)
Message:

Added unit test for Graph6Reader.

Location:
src/Graph
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/Graph6Reader.hpp

    rd661b2 rc52abd  
    2020#include <vector>
    2121
     22class Graph6ReaderUnitTest;
     23
    2224/** This functor parses graph6 formatted strings and returns number of nodes
    2325 * and a edge list.
     
    3133struct Graph6Reader
    3234{
     35  //!> grant unit test access to private parts
     36  friend class Graph6ReaderUnitTest;
     37
    3338  typedef std::pair<int, int> edge_t;
    3439  typedef std::vector< edge_t > edges_t;
  • src/Graph/unittests/Makefile.am

    rd661b2 rc52abd  
    66        ../Graph/unittests/BondGraphUnitTest.cpp \
    77        ../Graph/unittests/BoostGraphCreatorUnitTest.cpp \
    8         ../Graph/unittests/BreadthFirstSearchGathererUnitTest.cpp
     8        ../Graph/unittests/BreadthFirstSearchGathererUnitTest.cpp \
     9        ../Graph/unittests/Graph6ReaderUnitTest.cpp
    910
    1011GRAPHTESTSHEADERS = \
     
    1213        ../Graph/unittests/BondGraphUnitTest.hpp \
    1314        ../Graph/unittests/BoostGraphCreatorUnitTest.hpp \
    14         ../Graph/unittests/BreadthFirstSearchGathererUnitTest.hpp
     15        ../Graph/unittests/BreadthFirstSearchGathererUnitTest.hpp \
     16        ../Graph/unittests/Graph6ReaderUnitTest.hpp
    1517
    1618GRAPHTESTS = \
     
    1820        BondGraphUnitTest \
    1921        BoostGraphCreatorUnitTest \
    20         BreadthFirstSearchGathererUnitTest
     22        BreadthFirstSearchGathererUnitTest \
     23  Graph6ReaderUnitTest
    2124
    2225TESTS += $(GRAPHTESTS)
     
    6063BreadthFirstSearchGathererUnitTest_LDADD = ${GRAPHLIBS}
    6164
     65Graph6ReaderUnitTest_SOURCES = \
     66        ../Graph/unittests/Graph6ReaderUnitTest.cpp \
     67        ../Graph/unittests/Graph6ReaderUnitTest.hpp
     68Graph6ReaderUnitTest_LDADD = ${GRAPHLIBS}
    6269
    6370#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracChangeset for help on using the changeset viewer.