File: test_name.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 (24 lines) | stat: -rw-r--r-- 568 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
import os
import unittest
import random
import xxhash


class TestName(unittest.TestCase):
    def test_xxh32(self):
        self.assertEqual(xxhash.xxh32().name, "XXH32")

    def test_xxh64(self):
        self.assertEqual(xxhash.xxh64().name, "XXH64")

    def test_xxh3_64(self):
        self.assertEqual(xxhash.xxh3_64().name, "XXH3_64")

    def test_xxh128(self):
        self.assertEqual(xxhash.xxh128().name, "XXH3_128")

    def test_xxh3_128(self):
        self.assertEqual(xxhash.xxh3_128().name, "XXH3_128")

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