diff --git a/debug.py b/debug.py deleted file mode 100644 index c8b2577319aac4ff52bc9a5158c5a5c46ebeefe8..0000000000000000000000000000000000000000 --- a/debug.py +++ /dev/null @@ -1,26 +0,0 @@ -#%% -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