Skip to content

Commit

Permalink
Add test for upper case keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Oct 18, 2024
1 parent 392650d commit ed8542d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/io/vasp/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,16 @@ def test_types(self):
assert incar["HFSCREEN"] == 0.2
assert incar["ALGO"] == "All"

def test_upper_keys(self):
incar_str = """ALGO = Fast
ECUT = 510
EDIFF = 1e-07
"""
incar = Incar.from_str(incar_str)
incar["ecut"] = 480
assert "ecut" not in incar
assert incar["ECUT"] == 480

def test_proc_types(self):
assert Incar.proc_val("HELLO", "-0.85 0.85") == "-0.85 0.85"
assert Incar.proc_val("ML_MODE", "train") == "train"
Expand Down

0 comments on commit ed8542d

Please sign in to comment.