Skip to content

Instantly share code, notes, and snippets.

@ChrisBuchholz
Created September 12, 2012 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisBuchholz/3710079 to your computer and use it in GitHub Desktop.
Save ChrisBuchholz/3710079 to your computer and use it in GitHub Desktop.
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Addition
#include <boost/test/unit_test.hpp>
int addition(int i, int j)
{
return i + j;
}
BOOST_AUTO_TEST_CASE(universeInOrder)
{
BOOST_CHECK(addition(2, 2) == 4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment