From b2e70f54c3e25ea132838dbbad51ce5cfe321e8e Mon Sep 17 00:00:00 2001 From: Bas Nijholt <basnijholt@gmail.com> Date: Wed, 31 Jan 2018 16:06:44 +0100 Subject: [PATCH] adds test that checks for the expected discretizer returned function name --- kwant/continuum/tests/test_discretizer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kwant/continuum/tests/test_discretizer.py b/kwant/continuum/tests/test_discretizer.py index 47efbe3a..d9fdc887 100644 --- a/kwant/continuum/tests/test_discretizer.py +++ b/kwant/continuum/tests/test_discretizer.py @@ -404,6 +404,10 @@ def test_numeric_functions_with_subs(e_to_subs, e, subs): assert hop_direct == hop_subs +def test_onsite_hopping_function_name(): + template = str(discretize('A * k_x')) + assert 'def hopping' in template + def test_numeric_functions_advance(): hams = [ -- GitLab