Exemple #1
0
    def test_left_metric_wrong_group(self):
        group = self.group.rotations
        with pytest.raises(ValueError):
            SpecialEuclideanMatrixCannonicalLeftMetric(group)

        group = SpecialEuclidean(3, point_type="vector")
        with pytest.raises(ValueError):
            SpecialEuclideanMatrixCannonicalLeftMetric(group)
Exemple #2
0
    def test_left_metric_wrong_group(self):
        group = self.group.rotations
        self.assertRaises(
            ValueError,
            lambda: SpecialEuclideanMatrixCannonicalLeftMetric(group))

        group = SpecialEuclidean(3, point_type='vector')
        self.assertRaises(
            ValueError,
            lambda: SpecialEuclideanMatrixCannonicalLeftMetric(group))