Added test for Unit3::operator=

release/4.3a0
Martin Vonheim Larsen 2020-06-02 13:02:10 +02:00
parent 65da699e57
commit 7486ed7993
1 changed files with 9 additions and 0 deletions

View File

@ -484,6 +484,15 @@ TEST(Unit3, ErrorBetweenFactor) {
} }
} }
TEST(Unit3, copy_assign) {
Unit3 p{1, 0.2, 0.3};
EXPECT(p.error(p).isZero());
p = Unit3{-1, 2, 8};
EXPECT(p.error(p).isZero());
}
/* ************************************************************************* */ /* ************************************************************************* */
TEST(actualH, Serialization) { TEST(actualH, Serialization) {
Unit3 p(0, 1, 0); Unit3 p(0, 1, 0);