Skip to content

Commit

Permalink
Add test for parsing a hex float constant to the right type
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Aug 31, 2018
1 parent a915c3d commit 40f0d91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_c_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,9 @@ def test_decl_inits(self):
self.assertEqual(self.get_decl_init(d54),
['Constant', 'float', '1.0F'])

d55 = 'float ld = 0xDE.38p0;'
self.assertEqual(self.get_decl_init(d55),
['Constant', 'float', '0xDE.38p0'])

def test_decl_named_inits(self):
d1 = 'int a = {.k = 16};'
Expand Down

0 comments on commit 40f0d91

Please sign in to comment.