@@ -101,16 +101,24 @@ def test_symbol_database_operator(tmpdir):
101101def test_symbol_database_struct_1 (tmpdir ):
102102 __check_symbol_database (tmpdir , 'struct S {};' )
103103
104- @pytest .mark .skip () # FIXME: broken when clang json support was added
105- def test_ast_calculations (tmpdir ):
104+ def test_ast_calculations_1 (tmpdir ):
106105 __check_ast (tmpdir , 'int x = 5; int y = (x + 4) * 2;' )
107- __check_ast (tmpdir , 'long long dostuff(int x) { return x ? 3 : 5; }' )
108106
109107@pytest .mark .skip () # FIXME: broken when clang json support was added
110- def test_ast_control_flow (tmpdir ):
108+ def test_ast_calculations_2 (tmpdir ):
109+ __check_ast (tmpdir , 'long long dostuff(int x) { return x ? 3 : 5; }' )
110+
111+ def test_ast_control_flow_1 (tmpdir ):
111112 __check_ast (tmpdir , 'void foo(int x) { if (x > 5){} }' )
113+
114+ @pytest .mark .skip () # FIXME: broken when clang json support was added
115+ def test_ast_control_flow_2 (tmpdir ):
112116 __check_ast (tmpdir , 'int dostuff() { for (int x = 0; x < 10; x++); }' )
117+
118+ def test_ast_control_flow_3 (tmpdir ):
113119 __check_ast (tmpdir , 'void foo(int x) { switch (x) {case 1: break; } }' )
120+
121+ def test_ast_control_flow_4 (tmpdir ):
114122 __check_ast (tmpdir , 'void foo(int a, int b, int c) { foo(a,b,c); }' )
115123
116124def test_ast (tmpdir ):
0 commit comments