diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:39 +0300 |
commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /util/system/types_ut.pyx | |
parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
download | ydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 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 bb93ac8566..a63f3ce0b0 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) + |