From 63092811786bb546dc95a7611b5297cfd088d5ea Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Wed, 10 Jan 2024 20:50:08 +0100 Subject: [PATCH] removed accidentaly added file --- debug.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 debug.py diff --git a/debug.py b/debug.py deleted file mode 100644 index c8b257731..000000000 --- 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 -- GitLab