test.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * This file is part of VLE, a framework for multi-modeling, simulation
  3. * and analysis of complex dynamical systems.
  4. * http://www.vle-project.org
  5. *
  6. * Copyright (c) 2003-2014 Gauthier Quesnel <quesnel@users.sourceforge.net>
  7. * Copyright (c) 2003-2014 ULCO http://www.univ-littoral.fr
  8. * Copyright (c) 2007-2014 INRA http://www.inra.fr
  9. *
  10. * See the AUTHORS or Authors.txt file for copyright owners and
  11. * contributors
  12. *
  13. * This program is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation, either version 3 of the License, or (at
  16. * your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful, but
  19. * WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  21. * General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. #define BOOST_TEST_MAIN
  27. #define BOOST_AUTO_TEST_MAIN
  28. #define BOOST_TEST_DYN_LINK
  29. #define BOOST_TEST_MODULE package_test
  30. #include <boost/test/unit_test.hpp>
  31. #include <boost/test/auto_unit_test.hpp>
  32. #include <boost/test/floating_point_comparison.hpp>
  33. BOOST_AUTO_TEST_CASE(test_1)
  34. {
  35. BOOST_REQUIRE_EQUAL(1, 1);
  36. BOOST_REQUIRE_CLOSE(1000.0, 1000.1, 10.);
  37. BOOST_REQUIRE(1 == 1);
  38. BOOST_TEST_MESSAGE("test");
  39. }