Exemplo n.º 1
0
    def test_HalfRoundTrip(self):
        from pxr.Gf import _HalfRoundTrip
        self.assertEqual(1.0, _HalfRoundTrip(1.0))
        self.assertEqual(1.0, _HalfRoundTrip(1))
        self.assertEqual(2.0, _HalfRoundTrip(2))
        self.assertEqual(3.0, _HalfRoundTrip(3L))

        with self.assertRaises(TypeError):
            _HalfRoundTrip([])
Exemplo n.º 2
0
    def test_HalfRoundTrip(self):
        from pxr.Gf import _HalfRoundTrip
        self.assertEqual(1.0, _HalfRoundTrip(1.0))
        self.assertEqual(1.0, _HalfRoundTrip(1))
        self.assertEqual(2.0, _HalfRoundTrip(2))
        self.assertEqual(3.0, _HalfRoundTrip(3L))

        with self.assertRaises(TypeError):
            _HalfRoundTrip([])