Add tests for serialization of 2D transformations.

Fix #320.
This commit is contained in:
sebcrozet 2019-04-06 09:37:58 +02:00 committed by Sébastien Crozet
parent 66384dad36
commit dda41c1508
1 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,8 @@
use na::{
DMatrix, Isometry3, IsometryMatrix3, Matrix3x4, Point3, Quaternion, Rotation3, Similarity3,
SimilarityMatrix3, Translation3, Unit,
SimilarityMatrix3, Translation3, Unit, Point2, Translation2, Rotation2, Isometry2, IsometryMatrix2,
Similarity2, SimilarityMatrix2,
};
use rand;
use serde_json;
@ -35,6 +36,13 @@ test_serde!(
serde_similarity3, Similarity3;
serde_similarity_matrix3, SimilarityMatrix3;
serde_quaternion, Quaternion;
serde_point2, Point2;
serde_translation2, Translation2;
serde_rotation2, Rotation2;
serde_isometry2, Isometry2;
serde_isometry_matrix2, IsometryMatrix2;
serde_similarity2, Similarity2;
serde_similarity_matrix2, SimilarityMatrix2;
);
#[test]