Beispiel #1
0
def test_array():
    a = tensor([0, 1, 2], chunk_size=2)

    b = array(a)
    assert a is not b

    c = asarray(a)
    assert a is c
Beispiel #2
0
    def testArray(self):
        a = tensor([0, 1, 2], chunk_size=2)

        b = array(a)
        self.assertIsNot(a, b)

        c = asarray(a)
        self.assertIs(a, c)