From 017cc7570b2fe50b8a082b7cc43f56c00949f145 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 18 Jul 2019 14:25:56 -0500 Subject: [PATCH] Fix comparison string for improved conditional printing in test_isl --- test/test_isl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_isl.py b/test/test_isl.py index bbd4a813e..12e7c7670 100644 --- a/test/test_isl.py +++ b/test/test_isl.py @@ -48,7 +48,7 @@ def test_pw_aff_to_conditional_expr(): from loopy.symbolic import pw_aff_to_expr cond = isl.PwAff("[i] -> { [(0)] : i = 0; [(-1 + i)] : i > 0 }") expr = pw_aff_to_expr(cond) - assert str(expr) == "If(i == 0, 0, -1 + i)" + assert str(expr) == "0 if i == 0 else -1 + i" if __name__ == "__main__": -- GitLab