diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /util/system/types_ut.pyx | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/types_ut.pyx')
-rw-r--r-- | util/system/types_ut.pyx | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/util/system/types_ut.pyx b/util/system/types_ut.pyx index a63f3ce0b0..bb93ac8566 100644 --- a/util/system/types_ut.pyx +++ b/util/system/types_ut.pyx @@ -1,40 +1,40 @@ -from util.system.types cimport i8, i16, i32, i64 -from util.system.types cimport ui8, ui16, ui32, ui64 - -import pytest -import unittest - - -class TestTypes(unittest.TestCase): - def test_i8(self): - cdef i8 value = 42 - self.assertEqual(sizeof(value), 1) - - def test_ui8(self): - cdef ui8 value = 42 - self.assertEqual(sizeof(value), 1) - - def test_i16(self): - cdef i16 value = 42 - self.assertEqual(sizeof(value), 2) - - def test_ui16(self): - cdef ui16 value = 42 - self.assertEqual(sizeof(value), 2) - - def test_i32(self): - cdef i32 value = 42 - self.assertEqual(sizeof(value), 4) - - def test_ui32(self): - cdef ui32 value = 42 - self.assertEqual(sizeof(value), 4) - - def test_i64(self): - cdef i64 value = 42 - self.assertEqual(sizeof(value), 8) - - def test_ui64(self): - cdef ui64 value = 42 - self.assertEqual(sizeof(value), 8) - +from util.system.types cimport i8, i16, i32, i64 +from util.system.types cimport ui8, ui16, ui32, ui64 + +import pytest +import unittest + + +class TestTypes(unittest.TestCase): + def test_i8(self): + cdef i8 value = 42 + self.assertEqual(sizeof(value), 1) + + def test_ui8(self): + cdef ui8 value = 42 + self.assertEqual(sizeof(value), 1) + + def test_i16(self): + cdef i16 value = 42 + self.assertEqual(sizeof(value), 2) + + def test_ui16(self): + cdef ui16 value = 42 + self.assertEqual(sizeof(value), 2) + + def test_i32(self): + cdef i32 value = 42 + self.assertEqual(sizeof(value), 4) + + def test_ui32(self): + cdef ui32 value = 42 + self.assertEqual(sizeof(value), 4) + + def test_i64(self): + cdef i64 value = 42 + self.assertEqual(sizeof(value), 8) + + def test_ui64(self): + cdef ui64 value = 42 + self.assertEqual(sizeof(value), 8) + |