Skip to content

Commit

Permalink
TEST: Fix sort-axis test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Feb 9, 2021
1 parent 1c6c49f commit 1e5a28e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/sort-axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ mod tests {
assert_eq!(perm.indices[283103], 176939);

let b = a.permute_axis(Axis(0), &perm);
assert_eq!(b[[0, 0]], 74880.05859375);
assert_eq!(b[[283103, 0]], 109439.941);

println!("{:?} {:?}", b[[0, 0]], b[[283103, 0]]);
assert_eq!(b[[0, 0]], 74880.05859375);
assert_eq!(b[[283103, 0]], 109439.94140625);
}
}

0 comments on commit 1e5a28e

Please sign in to comment.