Commit a436be61 authored by Martin Claus's avatar Martin Claus

Added tests for string output

parent 45289262
......@@ -35,6 +35,19 @@ def test_parse_string(string):
assert nml.name == "nml"
@pytest.mark.parametrize(
"string",
["&nml\n/\n",
"&nml\nval1 = 3\n/\n",
"&nml\nval1 = .TRUE.\n/\n",
# "&nml\n,val1 = (/1,2,3,4,5,6/)\n/\n",
]
)
def test_string_out(string):
nml = namelist.parse_namelist_string(string)[0]
assert str(nml) == string
@pytest.mark.parametrize(
"string",
["&nml2 val=34 &end",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment