Skip to content

Commit

Permalink
Revert "updating to current Mathics-core master branch"
Browse files Browse the repository at this point in the history
This reverts commit ca6ac69.
  • Loading branch information
mmatera committed Dec 12, 2023
1 parent e41b645 commit 8aa3234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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
7 changes: 1 addition & 6 deletions test/test_hello.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@


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 8aa3234

Please sign in to comment.