unittest
python
test_std_map.py
Go to the documentation of this file.
1
from
std_map
import
copy, copy_boost, std_map_to_dict
2
3
t = {
"one"
: 1.0,
"two"
: 2.0}
4
t2 = {
"one"
: 1,
"two"
: 2,
"three"
: 3}
5
6
assert
std_map_to_dict
(t) == t
7
assert
std_map_to_dict
(
copy
(t)) == t
8
m =
copy_boost
(t2)
9
assert
m.todict() == t2
std_map_to_dict
bp::dict std_map_to_dict(const std::map< std::string, T1 > &map)
Definition:
std_map.cpp:11
copy_boost
boost::unordered_map< std::string, T1 > copy_boost(const boost::unordered_map< std::string, T1 > &obj)
Definition:
std_map.cpp:26
copy
ReturnMatrix copy(const Eigen::MatrixBase< Matrix > &mat)
Definition:
matrix.cpp:131
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Sep 20 2024 02:17:48