Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Oct 24, 2024
1 parent 492c7ff commit f29a922
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unit/ode/test_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0

from nmodl.ode import differentiate2c, integrate2c, make_symbol
from nmodl.ode import differentiate2c, integrate2c, make_symbol, forbidden_var
import pytest

import sympy as sp
Expand Down Expand Up @@ -156,6 +156,10 @@ def test_differentiate2c():
stepsize=-1,
)

# test reserved symbols
for var in forbidden_var:
assert sp.parse_expr(differentiate2c(var, var, {})) == sp.parse_expr("1.")


def test_integrate2c():

Expand Down

0 comments on commit f29a922

Please sign in to comment.