Exemplo n.º 1
0
 def test_constant_copy(self):
     """Test the copy function for Constants.
     """
     x = Constant(2)
     y = x.copy()
     self.assertEqual(y.shape, tuple())
     self.assertEqual(y.value, 2)
Exemplo n.º 2
0
 def test_constant_copy(self):
     """Test the copy function for Constants.
     """
     x = Constant(2)
     y = x.copy()
     self.assertEquals(y.size, (1, 1))
     self.assertEquals(y.value, 2)
Exemplo n.º 3
0
 def test_constant_copy(self):
     """Test the copy function for Constants.
     """
     x = Constant(2)
     y = x.copy()
     self.assertEqual(y.size, (1, 1))
     self.assertEqual(y.value, 2)