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

Commit

Permalink
update including sign
Browse files Browse the repository at this point in the history
  • Loading branch information
wkcn committed Sep 24, 2019
1 parent 2641c59 commit 0af60ab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions julia/test/unittest/ndarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1515,8 +1515,8 @@ function test_argmax()
4 2 6]
x = NDArray(A)

@test copy(argmax(x, dims = 1)) == [x[1] for x in argmax(A, dims = 1)]
@test copy(argmax(x, dims = 2)) == [x[2] for x in argmax(A, dims = 2)]
@test copy(argmax(x, dims = 1)) == [x[1] for x argmax(A, dims = 1)]
@test copy(argmax(x, dims = 2)) == [x[2] for x argmax(A, dims = 2)]
end

@info "NDArray::argmax::NaN"
Expand All @@ -1525,8 +1525,8 @@ function test_argmax()
NaN 2 6]
x = NDArray(A)

@test copy(argmax(x, dims = 1)) == [x[1] for x in argmax(A, dims = 1)]
@test copy(argmax(x, dims = 2)) == [x[2] for x in argmax(A, dims = 2)]
@test copy(argmax(x, dims = 1)) == [x[1] for x argmax(A, dims = 1)]
@test copy(argmax(x, dims = 2)) == [x[2] for x argmax(A, dims = 2)]
end
end

Expand All @@ -1537,8 +1537,8 @@ function test_argmin()
4 2 6]
x = NDArray(A)

@test copy(argmin(x, dims = 1)) == [x[1] for x in argmin(A, dims = 1)]
@test copy(argmin(x, dims = 2)) == [x[2] for x in argmin(A, dims = 2)]
@test copy(argmin(x, dims = 1)) == [x[1] for x argmin(A, dims = 1)]
@test copy(argmin(x, dims = 2)) == [x[2] for x argmin(A, dims = 2)]
end

@info "NDArray::argmin::NaN"
Expand All @@ -1547,8 +1547,8 @@ function test_argmin()
NaN 2 6]
x = NDArray(A)

@test copy(argmin(x, dims = 1)) == [x[1] for x in argmin(A, dims = 1)]
@test copy(argmin(x, dims = 2)) == [x[2] for x in argmin(A, dims = 2)]
@test copy(argmin(x, dims = 1)) == [x[1] for x argmin(A, dims = 1)]
@test copy(argmin(x, dims = 2)) == [x[2] for x argmin(A, dims = 2)]
end
end

Expand Down

0 comments on commit 0af60ab

Please sign in to comment.