From b0501cc7ea117a23f89e963a32aecabb65d0bbfd Mon Sep 17 00:00:00 2001 From: louis-langholtz Date: Sun, 29 Nov 2020 14:40:58 -0700 Subject: [PATCH 1/2] Updates version to 1.0.0 for release. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0818310d7b..3ee0802d32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ endforeach() # Set name for entire project. This establishes the project name in _* variables. # Details at: https://cmake.org/cmake/help/latest/command/project.html#command:project -project(PlayRho VERSION 0.14.0) +project(PlayRho VERSION 1.0.0) # Now PlayRho_VERSION set to version above. # PlayRho_VERSION_MAJOR set to first component. # PlayRho_VERSION_MINOR set to second component. From 430701d3ccbcf8a9fc006a915d3e23a831dcb4d1 Mon Sep 17 00:00:00 2001 From: louis-langholtz Date: Sun, 29 Nov 2020 19:30:50 -0700 Subject: [PATCH 2/2] Adds more test coverage to avoid loosing any. Not sure why changing nothing but the git tag and the CMakeLists.txt file it could cause a loss in test coverage percentage but given that it did hopefully this addition balances the scales back in the green. --- UnitTests/PrismaticJoint.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/UnitTests/PrismaticJoint.cpp b/UnitTests/PrismaticJoint.cpp index d217d6c0ef..2af122a07a 100644 --- a/UnitTests/PrismaticJoint.cpp +++ b/UnitTests/PrismaticJoint.cpp @@ -378,3 +378,21 @@ TEST(PrismaticJointConf, GetName) { EXPECT_STREQ(GetName(GetTypeID()), "d2::PrismaticJointConf"); } + +TEST(PrismaticJointConf, GetPrismaticJointConf) +{ + auto conf = PrismaticJointConf{}; + conf.bodyA = BodyID{21u}; + conf.bodyB = BodyID{39u}; + conf.localAnchorA = Length2(4_m, 5_m); + conf.localAnchorB = Length2(6_m, 7_m); + conf.enableLimit = true; + conf.lowerTranslation = 3_m; + conf.upperTranslation = 44_m; + auto result = PrismaticJointConf{}; + EXPECT_NO_THROW(result = GetPrismaticJointConf(Joint{conf})); + EXPECT_EQ(conf.bodyA, result.bodyA); + EXPECT_EQ(conf.bodyB, result.bodyB); + EXPECT_EQ(conf.collideConnected, result.collideConnected); + EXPECT_EQ(conf.enableLimit, result.enableLimit); +}