mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
14 lines
377 B
C++
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);
|
|
}
|
|
}
|