Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1769:ac7bf1ea3f1b Date: 2015-04-19 09:50 +0200 http://bitbucket.org/cffi/cffi/changeset/ac7bf1ea3f1b/
Log: Improve the test (passing) to check that comments are correctly ignored here diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/testing/test_verify.py @@ -657,9 +657,9 @@ # case the 'static' is completely ignored. ffi.cdef("static const int AA, BB, CC, DD;") lib = ffi.verify("#define AA 42\n" - "#define BB (-43)\n" - "#define CC (22*2)\n" - "#define DD ((unsigned int)142)\n") + "#define BB (-43) // blah\n" + "#define CC (22*2) /* foobar */\n" + "#define DD ((unsigned int)142) /* foo\nbar */\n") assert lib.AA == 42 assert lib.BB == -43 assert lib.CC == 44 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit