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 Oct 12, 2022
1 parent f1e3cbd commit f5e81b2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/python/test_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,25 @@ def func(i: ti.i32, f: ti.f32):
ti.sync()


@test_utils.test(arch=[ti.cpu, ti.cuda, ti.vulkan], exclude=[vk_on_mac], debug=True)
@test_utils.test(arch=[ti.cpu, ti.cuda, ti.vulkan],
exclude=[vk_on_mac],
debug=True)
def test_print_u64():

@ti.kernel
def func(i: ti.u64):
print("i = ", i)

func(2 ** 64 - 1)
func(2**64 - 1)
ti.sync()


@test_utils.test(arch=[ti.cpu, ti.cuda, ti.vulkan], exclude=[vk_on_mac], debug=True)
@test_utils.test(arch=[ti.cpu, ti.cuda, ti.vulkan],
exclude=[vk_on_mac],
debug=True)
def test_print_i64():

@ti.kernel
def func(i: ti.i64):
print("i = ", i)

func(-2 ** 63)
func(-2**63)
ti.sync()

0 comments on commit f5e81b2

Please sign in to comment.