Skip to content

Commit

Permalink
Trim whitespace in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Jul 25, 2018
1 parent cecb638 commit 8ff8088
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_c_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,10 +1009,10 @@ def test_struct_bitfields(self):
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
Expand Down Expand Up @@ -1392,7 +1392,7 @@ def test_pragma(self):
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)
Expand Down

0 comments on commit 8ff8088

Please sign in to comment.