From 69286c9bd7fa8d44c3081ee8d3b71e8f650d5756 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Fri, 21 Jan 2022 13:43:27 +0100
Subject: [PATCH] Fix JSON backend

---
 pystencils_tests/test_json_backend.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pystencils_tests/test_json_backend.py b/pystencils_tests/test_json_backend.py
index a3fb2420c..d09c13c71 100644
--- a/pystencils_tests/test_json_backend.py
+++ b/pystencils_tests/test_json_backend.py
@@ -21,13 +21,15 @@ def test_json_backend():
     a = sympy.Symbol('a')
 
     assignments = pystencils.AssignmentCollection({
-        z[0, 0]: x[0, 0] * sympy.log(a * x[0, 0] * y[0, 0])
+        z[0, 0]: x[0, 0] * a * x[0, 0] * y[0, 0]
     })
 
     ast = pystencils.create_kernel(assignments)
 
-    print(print_json(ast))
-    print(print_yaml(ast))
+    pj = print_json(ast)
+    # print(pj)
+    py = print_yaml(ast)
+    # print(py)
 
     temp_dir = tempfile.TemporaryDirectory()
     write_json(temp_dir.name + '/test.json', ast)
-- 
GitLab