Line |
Branch |
Exec |
Source |
1 |
|
|
// |
2 |
|
|
// Copyright (c) 2024 INRIA |
3 |
|
|
// |
4 |
|
|
|
5 |
|
|
#include <iostream> |
6 |
|
|
|
7 |
|
|
#include <pinocchio/serialization/csv.hpp> |
8 |
|
|
|
9 |
|
|
#include <boost/variant.hpp> // to avoid C99 warnings |
10 |
|
|
|
11 |
|
|
#include <boost/test/unit_test.hpp> |
12 |
|
|
#include <boost/utility/binary.hpp> |
13 |
|
|
|
14 |
|
|
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE) |
15 |
|
|
|
16 |
|
|
using namespace pinocchio; |
17 |
|
|
|
18 |
|
✗ |
BOOST_AUTO_TEST_CASE(test_random_matrix) |
19 |
|
|
{ |
20 |
|
✗ |
const Eigen::DenseIndex mat_size = 20; |
21 |
|
✗ |
const Eigen::MatrixXd matrix = Eigen::MatrixXd::Random(mat_size, mat_size); |
22 |
|
✗ |
toCSVfile(TEST_SERIALIZATION_FOLDER "/test.csv", matrix); |
23 |
|
|
} |
24 |
|
|
|
25 |
|
|
BOOST_AUTO_TEST_SUITE_END() |
26 |
|
|
|