Skip to content

Commit

Permalink
Minor housekeeping.
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindh-krishnamoorthy committed Nov 22, 2024
1 parent 0f9786a commit ae7ea50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/core/test_patterns.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Unit tests for mathics pattern matching
Unit tests for mathics.core.pattern
"""

import sys
Expand Down Expand Up @@ -55,9 +55,8 @@ def test_patterns(str_expr, msgs, str_expected, fail_msg):
@pytest.mark.parametrize(
("str_expr", "msgs", "str_expected", "fail_msg"),
[
# Rule
("rule=A[a_.+B[b_.*x_]]->{a,b,x};", None, "Null", None),
# Two default arguments (linear)
("rule=A[a_.+B[b_.*x_]]->{a,b,x};", None, "Null", None),
("A[B[1]] /. rule", None, "{0, 1, 1}", None),
("A[B[x]] /. rule", None, "{0, 1, x}", None),
("A[B[2*x]] /. rule", None, "{0, x, 2}", None),
Expand Down

0 comments on commit ae7ea50

Please sign in to comment.