Skip to content

Commit

Permalink
using ToString in test/help to handle unicode characters (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Apr 3, 2021
1 parent 05a50a8 commit 9ddd63a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
def check_evaluation(str_expr: str, str_expected: str, message=""):
"""Helper function to test that a WL expression against
its results"""
result = session.evaluate(str_expr)
result = session.evaluate("ToString[" + str_expr + "]").value
print("result=",result)
expected = session.evaluate(str_expected)
expected = session.evaluate("ToString[" + str_expected + "]").value
print("expected=",expected)
print(time.asctime())
print(message)
Expand Down
1 change: 1 addition & 0 deletions test/test_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

def test_compare():
for str_expr, str_expected in (
(r'"\[Mu]"=="μ"', "True", ),
(
"I == I",
"True",
Expand Down

0 comments on commit 9ddd63a

Please sign in to comment.