https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 05a8cda47164acbdb3283f91b880ed51690fc56b authored by Dmitri Naumov on 05 January 2016, 11:16:07 UTC
Update changelog.
Tip revision: 05a8cda
TestPoint3dWithID.cpp
/**
 * @file TestPoint3dWithID.cpp
 * @date 2015-05-21
 *
 * @copyright
 * Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/LICENSE.txt
 */

#include <ctime>

#include "gtest/gtest.h"

#include "MathLib/Point3dWithID.h"

using namespace MathLib;

TEST(MathLib, Point3dWithID)
{
	Point3dWithID p0(0,0,0,1);
	Point3dWithID p1(p0); // copy constructor
	Point3dWithID p2(p0, 2); // constructor for resetting the id

	EXPECT_EQ(p0.getID(), p1.getID());
	EXPECT_NE(p0.getID(), p2.getID());
}

back to top