File: test_crystal_structure.py

package info (click to toggle)
python-periodictable 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,884 kB
  • sloc: python: 8,509; makefile: 97; sh: 91; javascript: 7
file content (10 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
from periodictable import elements
import periodictable.crystal_structure

def test():
    xtal = elements.Hg.crystal_structure
    assert xtal['symmetry'] == 'Rhombohedral'
    assert xtal['a'] == 2.99
    assert xtal['alpha'] == 70.45

if __name__ == "__main__": test()