cspec
cspec copied to clipboard
Small BDD framework for C/C++
With this update, CSpec could be included in a CMake project without any installation by adding these lines to `CMakeLists.txt`: ```cmake include(ExternalProject) ExternalProject_Add(cspecs GIT_REPOSITORY https://github.com/mumuki/cspec CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR} ) include_directories(${CMAKE_BINARY_DIR}/include) link_directories(${CMAKE_BINARY_DIR}/lib)...
CMake allows to include an external project with Git adding these lines: ```cmake set(EXTERNAL_PROJECT_DIR ${CMAKE_BINARY_DIR}/external) include(ExternalProject) ExternalProject_Add(cspecs GIT_REPOSITORY https://github.com/mumuki/cspec CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_PROJECT_DIR} ) include_directories(${EXTERNAL_PROJECT_DIR}/include) link_directories(${EXTERNAL_PROJECT_DIR}/lib) link_libraries(cspecs) ``` But it fails because...
It would be nice to have array equality assertions, comparing element by element. Some thoughts about this: - As seen [here](http://www.cplusplus.com/doc/tutorial/arrays/), C++ supports literal arrays, but I believe it's mandatory...
# Error Upon clean install of cspec, following the explanation in the README.md file, and including the required header files for the example file copied from the previous file, Visual...
After installing the lib with: ``` make sudo make install ``` when compiling with: ``` gcc test.c -o test -lcspecs ``` I was having this permissions issue:  The solution...
Most C/C++ code formatters (like `clang-format`) are not able to understand the `{} end` syntax, so they end up formatting CSpec code like this: ```c #include #include #include context(example) {...