Go to the documentation of this file.
9 bool testFormatString() {
12 std::string test_str =
"Hello World!";
15 std::string(
"Number: 5"));
18 std::string(
"Real: 1.5 msg Hello World!"));
22 std::string(
"vec: 0 1 1.5"));
25 std::string(
"Number: 1\nFormat-Warning: There are 1 args unused."));
29 bool testSmokeDetails() {
35 "This is just a pratice alarm!");
41 Matrix<float, 1, 2> expected_row(1, 7);
51 std::cerr <<
"Common tests:" << std::endl;
52 bool passed = testFormatString();
53 passed &= testSmokeDetails();
60 int main() { Sophus::runAll(); }
void testFailed(bool &passed, char const *func, char const *file, int line, std::string const &msg)
Vector2< float > Vector2f
#define SOPHUS_TEST(passed, condition,...)
void processTestResult(bool passed)
auto transpose(T const &p) -> decltype(details::Transpose< T >::impl(T()))
constexpr nullopt_t nullopt
Vector3< float > Vector3f
#define SOPHUS_TEST_EQUAL(passed, left, right,...)
std::string pretty(T const &v)
std::string FormatString(char const *text, Args &&... args)
sophus
Author(s): Hauke Strasdat
autogenerated on Wed Mar 2 2022 01:01:48