Skip to content

Commit 6f3f73e

Browse files
committed
CLN: better test indent
1 parent be68ec4 commit 6f3f73e

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

larray/tests/test_array.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,45 +3074,45 @@ def test_reindex():
30743074
arr = ndtest((2, 2))
30753075
res = arr.reindex(X.b, ['b1', 'b2', 'b0'], fill_value=-1)
30763076
assert_larray_equal(res, from_string(r"""a\b b1 b2 b0
3077-
a0 1 -1 0
3078-
a1 3 -1 2"""))
3077+
a0 1 -1 0
3078+
a1 3 -1 2"""))
30793079

30803080
arr2 = ndtest((2, 2))
30813081
arr2.reindex(X.b, ['b1', 'b2', 'b0'], fill_value=-1, inplace=True)
30823082
assert_larray_equal(arr2, from_string(r"""a\b b1 b2 b0
3083-
a0 1 -1 0
3084-
a1 3 -1 2"""))
3083+
a0 1 -1 0
3084+
a1 3 -1 2"""))
30853085

30863086
# Array fill value
30873087
filler = ndtest(arr.a)
30883088
res = arr.reindex(X.b, ['b1', 'b2', 'b0'], fill_value=filler)
30893089
assert_larray_equal(res, from_string(r"""a\b b1 b2 b0
3090-
a0 1 0 0
3091-
a1 3 1 2"""))
3090+
a0 1 0 0
3091+
a1 3 1 2"""))
30923092

30933093
# using labels from another array
30943094
arr = ndtest('a=v0..v2;b=v0,v2,v1,v3')
30953095
res = arr.reindex('a', arr.b.labels, fill_value=-1)
30963096
assert_larray_equal(res, from_string(r"""a\b v0 v2 v1 v3
3097-
v0 0 1 2 3
3098-
v2 8 9 10 11
3099-
v1 4 5 6 7
3100-
v3 -1 -1 -1 -1"""))
3097+
v0 0 1 2 3
3098+
v2 8 9 10 11
3099+
v1 4 5 6 7
3100+
v3 -1 -1 -1 -1"""))
31013101
res = arr.reindex('a', arr.b, fill_value=-1)
31023102
assert_larray_equal(res, from_string(r"""a\b v0 v2 v1 v3
3103-
v0 0 1 2 3
3104-
v2 8 9 10 11
3105-
v1 4 5 6 7
3106-
v3 -1 -1 -1 -1"""))
3103+
v0 0 1 2 3
3104+
v2 8 9 10 11
3105+
v1 4 5 6 7
3106+
v3 -1 -1 -1 -1"""))
31073107

31083108
# passing a list of Axis
31093109
arr = ndtest((2, 2))
31103110
res = arr.reindex([Axis("a=a0,a1"), Axis("c=c0"), Axis("b=b1,b2")], fill_value=-1)
31113111
assert_larray_equal(res, from_string(r""" a b\c c0
3112-
a0 b1 1
3113-
a0 b2 -1
3114-
a1 b1 3
3115-
a1 b2 -1"""))
3112+
a0 b1 1
3113+
a0 b2 -1
3114+
a1 b1 3
3115+
a1 b2 -1"""))
31163116

31173117

31183118
def test_expand():
@@ -4912,7 +4912,7 @@ def test_eye():
49124912
# using an AxisCollection
49134913
res = eye(AxisCollection([a, c]))
49144914
expected = from_string(r"""
4915-
a\c c0 c1
4915+
a\c c0 c1
49164916
0 1.0 0.0
49174917
1 0.0 1.0
49184918
2 0.0 0.0""")
@@ -4921,7 +4921,7 @@ def test_eye():
49214921
# using a tuple of axes
49224922
res = eye((a, c))
49234923
expected = from_string(r"""
4924-
a\c c0 c1
4924+
a\c c0 c1
49254925
0 1.0 0.0
49264926
1 0.0 1.0
49274927
2 0.0 0.0""")

0 commit comments

Comments
 (0)