Skip to content
Snippets Groups Projects
Commit 63092811 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

removed accidentaly added file

parent e439a228
Branches
Tags
No related merge requests found
Pipeline #59717 failed with stages
in 3 minutes and 31 seconds
#%%
import pytest
from pystencils.nbackend.types.quick import *
def test_parsing_positive():
assert make_type("const uint32_t * restrict") == Ptr(UInt(32, const=True), restrict=True)
assert make_type("float * * const") == Ptr(Ptr(Fp(32)), const=True)
def test_parsing_negative():
bad_specs = [
"const notatype * const",
"cnost uint32_t",
"int", # plain ints are ambiguous
"float float",
"double * int",
"bool"
]
for spec in bad_specs:
with pytest.raises(ValueError):
make_type(spec)
#%%
test_parsing_positive()
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment