File: test_nanomath.py

package info (click to toggle)
python-nanomath 1.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 164 kB
  • sloc: python: 218; sh: 10; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest
import nanomath as nm


class NanomathTest(unittest.TestCase):
    def test_ave_qual(self):
        """Test average quality calculation."""
        quals = list(range(128 + 1)) * 100
        mq = nm.ave_qual(quals, qround=True)
        self.assertEqual(mq, 14)


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