Skip to content

Commit

Permalink
added test for cy_typs
Browse files Browse the repository at this point in the history
  • Loading branch information
nucccc committed Dec 3, 2023
1 parent e22e214 commit 69f2d2d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test_cy_typs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pytest

from markarth.convert.cythonize.cy_typs import (
cy_int_str,
cy_float_str,
CyInt,
CyFloat
)


def test_cy_int_str():
assert cy_int_str(CyInt.SHORT) == 'short'
assert cy_int_str(CyInt.INT) == 'int'
assert cy_int_str(CyInt.LONG) == 'long'
assert cy_int_str(CyInt.LONGLONG) == 'longlong'


def test_cy_float_str():
assert cy_float_str(CyFloat.FLOAT) == 'float'
assert cy_float_str(CyFloat.DOUBLE) == 'double'

0 comments on commit 69f2d2d

Please sign in to comment.