Skip to content

Commit

Permalink
Merge pull request #384 from louis-langholtz/release-1.0
Browse files Browse the repository at this point in the history
Thanksgiving 2020 Release 1.0.0
  • Loading branch information
louis-langholtz authored Nov 30, 2020
2 parents 38bc039 + 430701d commit e13a413
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ endforeach()

# Set name for entire project. This establishes the project name in <PROJECT_NAME>_* 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.
Expand Down
18 changes: 18 additions & 0 deletions UnitTests/PrismaticJoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,21 @@ TEST(PrismaticJointConf, GetName)
{
EXPECT_STREQ(GetName(GetTypeID<PrismaticJointConf>()), "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);
}

0 comments on commit e13a413

Please sign in to comment.