Skip to content

Commit

Permalink
added unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
skatnagallu committed Feb 26, 2024
1 parent d680e52 commit 6136d91
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions correlationHistogramAnalysis/tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import unittest
import correlationHistogramAnalysis.dissociation_tracks as diss

class TestCorrHist(unittest.TestCase):
def test_parse_formula(self):
e,_= diss.parse_formula('Fe2O3')
self.assertTrue(len(e)==1)
self.assertEqual(list(e.keys())[0],'Fe')

if __name__ == "__main__":
unittest.main()

0 comments on commit 6136d91

Please sign in to comment.