Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2022
1 parent a709d32 commit abd58e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/python/test_bit_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def sar_assign(a: ti.i32, b: ti.i32) -> ti.i32:
assert sar(test_num, i) == sar_assign(test_num, i) == 2**(n - i)
# for negative number
for i in range(n):
assert sar(neg_test_num, i) == sar_assign(neg_test_num, i) == -2**(n - i)
assert sar(neg_test_num, i) == sar_assign(neg_test_num,
i) == -2**(n - i)


@test_utils.test()
Expand Down

0 comments on commit abd58e1

Please sign in to comment.