Dustin Spicuzza 37cd3abee9 Parse C++20 requirement constraints for functions/classes
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
2023-10-13 02:34:21 -04:00
..
2020-12-28 03:43:37 -05:00
2023-10-05 02:53:55 -04:00
2023-07-23 17:02:32 -04:00
2023-03-16 18:45:34 -04:00
2023-09-27 01:14:21 -04:00
2023-09-27 01:14:21 -04:00
2023-09-19 00:19:46 -04:00

Tests

To run the tests, install cxxheaderparser and pytest, then just run:

pytest

Adding new tests

There's a helper script in cxxheaderparser explicitly for generating many of the unit tests in this directory. To run it:

  • Create a file with your C++ content in it
  • Run python -m cxxheaderparser.gentest FILENAME.h some_name
  • Copy the stdout to one of these test_*.py files

Content origin

  • Some are scraps of real code derived from various sources
  • Some were derived from the original CppHeaderParser tests
  • Some have been derived from examples found on https://en.cppreference.com, which are available under Creative Commons Attribution-Sharealike 3.0 Unported License (CC-BY-SA)