Skip to content
Snippets Groups Projects
Commit 4190842d authored by Tom Fischer's avatar Tom Fischer
Browse files

[T] Test constructors.

parent b73c0431
No related branches found
No related tags found
No related merge requests found
/**
* @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 "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());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment