示例#1
0
// Slightly above pi should mod to near -pi (but above).
TEST_F(AngleTests, ModAbovePi) {
  const Angle a = Angle::FromWithinThreePi(above_pi_);
  EXPECT_TRUE(a.IsValid());
}
示例#2
0
// Slightly below -pi should mod to near pi.
TEST_F(AngleTests, ModBelowNegativePi) {
  const Angle a = Angle::FromWithinThreePi(below_negative_pi_);
  EXPECT_TRUE(a.IsValid());
}