File: test_fnv.py

package info (click to toggle)
python-flor 1.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: python: 183; sh: 6; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# DCSO - Flor
# Copyright (c) 2016, 2017, DCSO GmbH. All rights reserved.

import unittest
from flor.fnv import fnv_1, fnv_1a

class TestFNV(unittest.TestCase):

    def test_fnv_1(self):
        assert fnv_1(b"test") == 0x8c093f7e9fccbf69

    def test_fnv_1a(self):
        assert fnv_1a(b"test") == 0xf9e6e6ef197c2b25

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