MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / test_correct_element_index

Method test_correct_element_index

test/python/test_ElementMap.py:69–71  ·  view source on GitHub ↗
(self, em1)

Source from the content-addressed store, hash-verified

67
68class Test_symbol:
69 def test_correct_element_index(self, em1):
70 for i, e in enumerate(elements):
71 assert em1.symbol(i) == e, "Wrong element order."
72 def test_wrong_argument_type(self, em1):
73 with pytest.raises(TypeError):
74 em1.symbol("H")

Callers

nothing calls this directly

Calls 1

symbolMethod · 0.80

Tested by

no test coverage detected