Skip to content
Snippets Groups Projects
Particle_test.cpp 629 B
Newer Older
  • Learn to ignore specific revisions
  • David Vojtek's avatar
    David Vojtek committed
    /**
     * DESCRIPTION OF THE CLASS
     *
     * @author David Vojtek
     * @date 2018
     */
    
    #define BOOST_TEST_NO_MAIN
    
    #include <boost/test/unit_test.hpp>
    
    
    #include "../LearningMethods/ParticleSwarm.h"
    /**
     * Boost testing suite for testing ParticleSwarm.h
     */
    
    double test_particle_function(double *weights){
    
    
    David Vojtek's avatar
    David Vojtek committed
        return 0;
    
    David Vojtek's avatar
    David Vojtek committed
    }
    
    BOOST_AUTO_TEST_SUITE(Particle_test)
        BOOST_AUTO_TEST_CASE(Particle_construction_test){
            double domain_bound[5] = {1,2,3,4,5};
            double (*F)(double*) = &test_particle_function;
            Particle particle(1, &domain_bound[0], F);
          //  particle.get_coordinate();
    }
    
    
    
    BOOST_AUTO_TEST_SUITE_END()