Add Exceptions indicating which line contains error when parsing JSON

This commit is contained in:
Vyn 2024-11-29 10:50:49 +01:00
parent fd034eff71
commit 2639dba60a
9 changed files with 307 additions and 177 deletions

View file

@ -21,7 +21,7 @@ Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.4.0 # or a later release
GIT_TAG v3.7.1 # or a later release
)
FetchContent_MakeAvailable(Catch2)
@ -30,6 +30,7 @@ add_executable(tests
tests/usage.cpp
tests/parsing.cpp
tests/stringify.cpp
tests/errors.cpp
)
target_include_directories(tests PRIVATE "include")
target_link_libraries(tests PRIVATE rei-json)