diff options
author | Eli Bendersky <eliben@gmail.com> | 2018-07-25 05:36:22 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2018-07-25 05:36:22 -0700 |
commit | 8ff8088cdce7906b1848aa6d3163e6f937f7ff1d (patch) | |
tree | 8c158c404dcddaaa74e83692201a1dae55aa8a06 | |
parent | cecb63890ca13253060540832d94b640b70a7c47 (diff) | |
download | pycparser-8ff8088cdce7906b1848aa6d3163e6f937f7ff1d.tar.gz |
Trim whitespace in test file
-rwxr-xr-x | tests/test_c_parser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_c_parser.py b/tests/test_c_parser.py index fd85c0d..5b9db6e 100755 --- a/tests/test_c_parser.py +++ b/tests/test_c_parser.py @@ -1009,10 +1009,10 @@ class TestCParser_fundamentals(TestCParser_base): def test_struct_empty(self): """ Tests that parsing an empty struct works. - + Empty structs do NOT follow C99 (See 6.2.5-20 of the C99 standard). - This is nevertheless supported by some compilers (clang, gcc), - especially when using FORTIFY code. + This is nevertheless supported by some compilers (clang, gcc), + especially when using FORTIFY code. Some compilers (visual) will fail to compile with an error. """ # an empty struct. This is NOT C99 compliant @@ -1392,7 +1392,7 @@ class TestCParser_fundamentals(TestCParser_base): self.assertTrue(isinstance(s1_ast.ext[1].body.block_items[2], Pragma)) self.assertEqual(s1_ast.ext[1].body.block_items[2].string, '') self.assertEqual(s1_ast.ext[1].body.block_items[2].coord.line, 6) - + self.assertTrue(isinstance(s1_ast.ext[2].type.type.decls[0], Pragma)) self.assertEqual(s1_ast.ext[2].type.type.decls[0].string, 'baz') self.assertEqual(s1_ast.ext[2].type.type.decls[0].coord.line, 9) |