Update it all, VisualStudio Changes

This commit is contained in:
2016-08-23 12:33:06 -05:00
parent 2a0c6f9e45
commit b8814259b5
136 changed files with 180080 additions and 66 deletions

10
cpp/example/example.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
class example
{
public:
static int add( int x, int y )
{
return x + y;
}
};

View File

@@ -0,0 +1,22 @@
#include "example.h"
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(add_2_and_2)
{
BOOST_REQUIRE_EQUAL(4, example::add(2, 2));
}
BOOST_AUTO_TEST_CASE( add_12_and_24 )
{
BOOST_REQUIRE_EQUAL( 36, example::add( 12, 24 ) );
}
BOOST_AUTO_TEST_CASE( add_100_and_1 )
{
BOOST_REQUIRE_EQUAL( 101, example::add( 100, 1 ) );
}
BOOST_AUTO_TEST_CASE( add_2_and_minus_2 )
{
BOOST_REQUIRE_EQUAL( 0, example::add( 2, -2 ) );
}