Skip to content

Commit

Permalink
[bug] Fix test_fibonacci (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye authored Jul 5, 2020
1 parent 213a774 commit 9e6bd3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/python/test_tuple_assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ def test_fibonacci():
@ti.kernel
def ti_fibonacci(n: ti.i32) -> ti.i32:
a, b = 0, 1
if 1:
# This is to make the inner for loop serial on purpose...
for _ in range(1):
for i in range(n):
a, b = b, a + b
return b
Expand Down

0 comments on commit 9e6bd3c

Please sign in to comment.