Skip to content

Commit

Permalink
explicit tuple equality
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh committed Aug 17, 2024
1 parent 968bfa5 commit 34d1c59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/backend/test_jax_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ def test_abs():
@executable
def abs_tuple(a: jax.Array) -> tuple[jax.Array]: ...

assert abs_tuple(array(-2, dtype=jax.numpy.int32))[0] == array(
2, dtype=jax.numpy.int32
assert abs_tuple(array(-2, dtype=jax.numpy.int32)) == (
array(2, dtype=jax.numpy.int32),
)
assert abs_tuple(array(0, dtype=jax.numpy.int32))[0] == array(
0, dtype=jax.numpy.int32
assert abs_tuple(array(0, dtype=jax.numpy.int32)) == (
array(0, dtype=jax.numpy.int32),
)
assert abs_tuple(array(2, dtype=jax.numpy.int32))[0] == array(
2, dtype=jax.numpy.int32
assert abs_tuple(array(2, dtype=jax.numpy.int32)) == (
array(2, dtype=jax.numpy.int32),
)

@executable
Expand Down

0 comments on commit 34d1c59

Please sign in to comment.