Skip to content

Commit

Permalink
added a few simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eas342 committed Dec 23, 2020
1 parent 4908ac0 commit 161c90c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Empty file added tests/__init__.py
Empty file.
13 changes: 13 additions & 0 deletions tests/test_mie.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import dust_mie.calc_mie
import unittest
import numpy as np

class TestStringMethods(unittest.TestCase):

def test_eval(self):
qext, qsca, qback, g = dust_mie.calc_mie.all_opt_coeff_full(10,0.1,1.8)
self.assertTrue(np.allclose(qext,2.4225072017747613))
self.assertTrue(np.allclose(qsca,1.2649707001343864))

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

0 comments on commit 161c90c

Please sign in to comment.