Cleaning up and documenting scmp code.
This commit is contained in:
@@ -42,6 +42,11 @@ namespace geom {
|
||||
//
|
||||
// Point2D
|
||||
|
||||
|
||||
Point2D::Point2D() : x(0), y(0) {}
|
||||
|
||||
Point2D::Point2D(int _x, int _y) : x(_x), y(_y) {}
|
||||
|
||||
Point2D::Point2D(const Polar2D &pol)
|
||||
: x(std::rint(std::cos(pol.theta) * pol.r)),
|
||||
y(std::rint(std::sin(pol.theta) * pol.r)) {}
|
||||
|
||||
@@ -61,7 +61,7 @@ SimpleSuite::AddTest(std::string name, std::function<bool()> test)
|
||||
void
|
||||
SimpleSuite::AddFailingTest(std::string name, std::function<bool()> test)
|
||||
{
|
||||
const UnitTest test_case = {std::move(name), test, false};
|
||||
const UnitTest test_case = {std::move(name), std::move(test), false};
|
||||
tests.push_back(test_case);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user