From e9093de0b582ac928b927f429ea8de1a1aeed4c3 Mon Sep 17 00:00:00 2001 From: Karl-Hermann Wieners <karl-hermann.wieners@mpimet.mpg.de> Date: Tue, 28 May 2024 14:34:12 +0200 Subject: [PATCH] check: combined default value with namelist inheritance --- test.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test.py b/test.py index f6cfcf8..e7ac5cf 100644 --- a/test.py +++ b/test.py @@ -844,6 +844,31 @@ class NamelistInheritanceTestCase(MkexpSimpleTestCase): [[[group clone]]] """) + def test_defaulting_inherited_value(self): + self.run_test(u""" + %{NAMELIST} + """, u""" + &group1 + value = 42 + / + &group2 + / + &group3 + value = 84 + / + """, u""" + [namelists] + [[namelist]] + [[[group1]]] + value = 42 + [[[group2]]] + .extends = group1 + value = + [[[group3]]] + .extends = group2 + value = 84 + """) + class NamelistTemplateTestCase(MkexpSimpleTestCase): def test_use_template(self): -- GitLab