diff --git a/correlationHistogramAnalysis/tests/test.py b/correlationHistogramAnalysis/tests/test.py new file mode 100644 index 0000000..26e5ad2 --- /dev/null +++ b/correlationHistogramAnalysis/tests/test.py @@ -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() \ No newline at end of file