You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/drake-master/common/test/autodiffxd_addition_test.cc

20 lines
452 B

/* clang-format off to disable clang-format-includes */
#include "drake/common/autodiff.h"
#include "drake/common/ad/test/standard_operations_test.h"
/* clang-format on */
namespace drake {
namespace test {
namespace {
TEST_F(AutoDiffXdTest, Addition) {
CHECK_BINARY_OP(+, x, y, 1.0);
CHECK_BINARY_OP(+, x, y, -1.0);
CHECK_BINARY_OP(+, y, x, 1.0);
CHECK_BINARY_OP(+, y, x, -1.0);
}
} // namespace
} // namespace test
} // namespace drake