Skip to content

Commit

Permalink
Merge branch 'main' into update_Mathics7
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera authored Dec 12, 2023
2 parents 46fd059 + 8aa3234 commit 9224626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions pymathics/hello/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from mathics.core.atoms import String
from mathics.core.builtin import Builtin
from mathics.builtin.base import Builtin, String


class Hello(Builtin):
Expand All @@ -14,7 +13,7 @@ class Hello(Builtin):
"""

# The function below should start with "apply"
def eval_with_name(self, person, evaluation):
def apply_with_name(self, person, evaluation):
"%(name)s[person_String]"
# %(name)s is just a more flexible way of writing "Hello".
# If the class name changes, so will the above pattern.
Expand Down
5 changes: 2 additions & 3 deletions test/test_hello.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

from mathics.core.load_builtin import import_and_load_builtins
from mathics.session import MathicsSession

import_and_load_builtins()

session = MathicsSession(character_encoding="ASCII")
session = MathicsSession(add_builtin=True, catch_interrupt=False)


def check_evaluation(str_expr: str, expected: str, message=""):
Expand Down

0 comments on commit 9224626

Please sign in to comment.