Commit 177fb9d5 authored by Christoph Groth's avatar Christoph Groth
Browse files

add failing (segfaulting!) test

parent 64aaf0be
# Copyright 2012-2015 Tinyarray authors.
# Copyright 2012-2016 Tinyarray authors.
#
# This file is part of Tinyarray. It is subject to the license terms in the
# file LICENSE.rst found in the top-level directory of this distribution and
......@@ -91,6 +91,9 @@ def test_array():
# possible to distinguish shape 0 from (0, 0).
b = ta.array(a)
# This tests creation of arrays from non-C-contiguous buffers.
assert_equal(b, ta.array(a.transpose()).transpose())
assert isinstance(repr(b), str)
assert_equal(b.ndim, len(b.shape))
assert_equal(b.shape, a.shape)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment