Skip to content

Commit

Permalink
Add new test case for checking escaping of double quotes in options
Browse files Browse the repository at this point in the history
  • Loading branch information
eunovm committed Jul 7, 2022
1 parent dce2c60 commit a391d41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/input/generic.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const char *tmp = DOUBLE_QUOTES;
9 changes: 9 additions & 0 deletions tests/test_generic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest
import utils


class TestGeneric(utils.CIFTestCase):
# Indeed, cif.cpp does not require to escape double quotes unlike it was for cif.c.
@pytest.mark.xfail
def test_escaping_double_quotes(self):
self.cif.run(cif_input='input/generic.c', stage='C-backend', cif_output='work/simple.c', aspectator_opts=['-DDOUBLE_QUOTES=\\"double quotes\\"'])

0 comments on commit a391d41

Please sign in to comment.