Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix random shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Oct 4, 2019
1 parent 90c548c commit fd69dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_ndarray_random_randn():
@with_seed()
def test_ndarray_random_shuffle():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
a[-1] == 3 # assign 3 to entire last row
a[-1] = 3 # assign 3 to entire last row
a = nd.random.shuffle(a)
# slice first column from shuffled array
# pass LARGE_X values to numpy instead of LARGE_X*SMALL_Y
Expand All @@ -175,7 +175,7 @@ def test_ndarray_random_shuffle():
assert len(unique_a) == 2 # only 2 unique values
assert unique_a[0] == 1 # first unique value is 1
assert unique_a[1] == 3 # second unique value is 3
assert a.shape[0] == (LARGE_X, SMALL_Y)
assert a.shape == (LARGE_X, SMALL_Y)


def test_ndarray_empty():
Expand Down

0 comments on commit fd69dfb

Please sign in to comment.