Skip to content

Commit 87b31e9

Browse files
committed
#61: code cleanup
1 parent dda962f commit 87b31e9

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

tests/runner.cpp

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,9 @@ BOOST_AUTO_TEST_CASE(decimalBasicTest) {
2525
using namespace dec;
2626
using namespace std;
2727

28-
// the following declares currency variable with 2 decimal points
29-
// initialized with integer value (can be also floating-point)
30-
decimal<2> value(143125);
28+
decimal<2> value1(143125);
29+
decimal<2> value2("143125");
3130

32-
// displays: Value #1 is: 143125.00
33-
cout << "Value #1 is: " << value << endl;
31+
BOOST_CHECK_EQUAL(value1, value2);
3432
}
3533

36-
//BOOST_AUTO_TEST_SUITE ( test )
37-
//#include "decimalTest.cpp"
38-
//#include "decimalTestAbout.cpp"
39-
//#include "decimalTestArithmetic.cpp"
40-
//#include "decimalTestDiv.cpp"
41-
//#include "decimalTestEdgeCases.cpp"
42-
//#include "decimalTestModulo.cpp"
43-
//#include "decimalTestMult.cpp"
44-
//#include "decimalTestMultDiv.cpp"
45-
//#include "decimalTestRounding.cpp"
46-
//#include "decimalTestRoundOth.cpp"
47-
//#include "decimalTestString.cpp"
48-
//#include "decimalTestTypeLevel.cpp"
49-
//#include "decimalTestWithExponent.cpp"
50-
//BOOST_AUTO_TEST_SUITE_END( )

0 commit comments

Comments
 (0)