-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brought up test coverage with new setup
- Loading branch information
Showing
4 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
''' | ||
aimed at testing how cy_typs are converted into cython | ||
''' | ||
|
||
|
||
from markarth.convert.cythonize.cy_typs import CyFloat, CyInt | ||
from markarth.convert.cythonize.pure_funcs.typs_conv import ( | ||
cy_int_str_pure, | ||
cy_float_str_pure | ||
) | ||
|
||
def test_cy_int_str_pure(): | ||
assert cy_int_str_pure(CyInt.SHORT) == 'short' | ||
assert cy_int_str_pure(CyInt.INT) == 'int' | ||
assert cy_int_str_pure(CyInt.LONG) == 'long' | ||
assert cy_int_str_pure(CyInt.LONGLONG) == 'longlong' | ||
|
||
def test_cy_float_str_pure(): | ||
assert cy_float_str_pure(CyFloat.FLOAT) == 'float' | ||
assert cy_float_str_pure(CyFloat.DOUBLE) == 'double' |