Esempio n. 1
0
 def test_as_object(self):
     a = Vector([1, 2]).as_object()
     assert a.is_object()
     assert np.all(a == [1, 2])
Esempio n. 2
0
 def test___new___na_object_single(self):
     # Missing values should be None.
     a = Vector([None], object)
     assert a.is_object()
     assert a[0] is None