Пример #1
0
 def test_02_001_EncapsulateUnicode(self):
     a = u.encapsulate_string(u'Hello')
     self.assertTrue(a.shape == (1, ))
     self.assertTrue(a.dtype.kind == 'U')
     self.assertTrue(a[0] == u'Hello')
Пример #2
0
 def test_02_001_EncapsulateUnicode(self):
     a = u.encapsulate_string(u'Hello')
     self.assertTrue(a.shape == (1,))
     self.assertTrue(a.dtype.kind == 'U')
     self.assertTrue(a[0] == u'Hello')
Пример #3
0
 def test_02_001_EncapsulateString(self):
     a = u.encapsulate_string('Hello')
     self.assertTrue(a.shape == (1, ))
     self.assertTrue(a.dtype.kind == 'S')
     self.assertTrue(a[0] == 'Hello')
Пример #4
0
 def test_02_001_EncapsulateString(self):
     a = u.encapsulate_string('Hello')
     self.assertTrue(a.shape == (1,))
     self.assertTrue(a.dtype.kind == 'S')
     self.assertTrue(a[0] == 'Hello')