32 #include "gtest/gtest.h"
36 class TestYAMLExport :
public testing::Test
42 virtual ~TestYAMLExport() {}
54 TEST_F(TestYAMLExport, test1)
59 std::string
filename =
"testfile.yaml";
64 TEST_F(TestYAMLExport, export_matrix)
67 std::string
filename =
"testfile.yaml";
69 Eigen::Matrix3d
mat = Eigen::Matrix3d::Identity();
72 mat_sig.header.name =
"test_header_name";
78 TEST_F(TestYAMLExport, export_matrix_set)
81 std::string
filename =
"testfile.yaml";
83 Eigen::Matrix3d
mat = Eigen::Matrix3d::Identity();
86 mat_sig->header.name =
"mat_sig_name";
93 mat_set_sig.
add(mat_sig);
94 mat_set_sig.
add(mat_sig);
96 Eigen::Matrix2d mat2d;
98 mat_set_sig.
add(mat2d,
"2d_mat");
103 #endif // YAML_SUPPORT