Skip to content

Commit

Permalink
isort & black
Browse files Browse the repository at this point in the history
  • Loading branch information
Li-Xiang-Ideal committed Dec 14, 2023
1 parent 3839866 commit 353d400
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/eval/test_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def testCartesianProduct(self):
list5 = ListExpression(Integer(4), Integer(5))
list6 = ListExpression(Integer(6), Integer(7), Integer(8))

expected_result_3 = Expression(Symbol("System`Tuples"), ListExpression(list4, list5, list6)).evaluate(evaluation)
expected_result_3 = Expression(
Symbol("System`Tuples"), ListExpression(list4, list5, list6)
).evaluate(evaluation)

def cond_next_list(item, level) -> bool:
return isinstance(item, Atom) or not item.head.sameQ(SymbolList)
Expand All @@ -123,7 +125,10 @@ def cond_next_list(item, level) -> bool:
evaluation,
)

assert ListExpression(*construct_outer([list4, list5, list6], (), etc_4)) == expected_result_3
assert (
ListExpression(*construct_outer([list4, list5, list6], (), etc_4))
== expected_result_3
)


if __name__ == "__main__":
Expand Down

0 comments on commit 353d400

Please sign in to comment.