File: test_algorithms_available.py

package info (click to toggle)
python-xxhash 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 232 kB
  • sloc: ansic: 1,314; python: 673; sh: 59; makefile: 7
file content (28 lines) | stat: -rw-r--r-- 654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import xxhash
import unittest


class TestAlgorithmExists(unittest.TestCase):
    def test_xxh32(self):
        xxhash.xxh32
        assert "xxh32" in xxhash.algorithms_available

    def test_xxh64(self):
        xxhash.xxh64
        assert "xxh64" in xxhash.algorithms_available

    def test_xxh3_64(self):
        xxhash.xxh3_64
        assert "xxh3_64" in xxhash.algorithms_available

    def test_xxh128(self):
        xxhash.xxh128
        assert "xxh128" in xxhash.algorithms_available

    def test_xxh3_128(self):
        xxhash.xxh3_128
        assert "xxh3_128" in xxhash.algorithms_available


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