Skip to content

Commit 916a851

Browse files
committed
Updated TVMScript printer unit test with boolean condition
1 parent 1266012 commit 916a851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/python/unittest/test_tvmscript_printer_tir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ def test_attr_stmt():
277277

278278
def test_assert_stmt():
279279
with IRBuilder() as ib:
280-
with T.Assert(1, "assertion"):
280+
with T.Assert(True, "assertion"):
281281
T.evaluate(0)
282282
obj = ib.get()
283283
_assert_print(
284284
obj,
285285
"""
286-
with T.Assert(1, "assertion"):
286+
with T.Assert(T.bool(True), "assertion"):
287287
T.evaluate(0)
288288
""",
289289
)

0 commit comments

Comments
 (0)