Files
rdkit/Code/Geometry/catch_tests.cpp
Greg Landrum 3c597ae94c Allow Point2D to be constructed from Point3D (#2572)
* Allow Point2D to be constructed from Point3D

* document the new ctor
2019-07-30 06:42:44 -04:00

14 lines
377 B
C++

#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do
// this in one cpp file
#include "catch.hpp"
#include <Geometry/point.h>
TEST_CASE("construct Point2D from Point3D", "[point]") {
SECTION("basics") {
RDGeom::Point3D p3(1., 2., 3.);
RDGeom::Point2D p2(p3);
CHECK(p2.x == p3.x);
CHECK(p2.y == p3.y);
}
}