scnlib
scanf for modern C++ (by eliaskosunen)
Catch
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch) (by catchorg)
scnlib | Catch | |
---|---|---|
18 | 55 | |
947 | 18,020 | |
- | 0.7% | |
9.3 | 9.2 | |
9 days ago | 2 days ago | |
C++ | C++ | |
Apache License 2.0 | Boost Software License 1.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scnlib
Posts with mentions or reviews of scnlib.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-07.
-
Why are strings and IO so complicated?
scnlib (https://github.com/eliaskosunen/scnlib) scanf
- Reddit++
- Safe and cross platform C++11 alternative to sscanf
-
CPM.cmake to make CMake's FetchContent easier
include(FetchContent) FetchContent_Declare( Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG v3.0.0-preview4 ) FetchContent_Declare( fmt GIT_REPOSITORY https://github.com/fmtlib/fmt.git GIT_TAG 9.1.0 ) FetchContent_Declare( scnlib GIT_REPOSITORY https://github.com/eliaskosunen/scnlib.git GIT_TAG v1.1.2 ) FetchContent_MakeAvailable(Catch2 fmt scnlib)
-
[C++20] ClearIO library (unfinished)
Yeah, but parsing format strings in runtime induces an overhead, and doing it in compile time is not trivial, and I’m not sure ClearIO is worth the trouble, since it turns out scnlib exists.
-
My AoC2021 solutions in C++
The code is rather nice (in my biased opinion) and makes heavy use of a couple of libraries like scnlib and [Eigen](eigen.tuxfamily.org/). Some things could probably be more optimized but I mainly focused on conciseness. I hope this is useful and I can explain my thought process further if you have any questions.
-
what annoys you most while using c++?
I've found https://github.com/eliaskosunen/scnlib but haven't tested it. Maybe that suits your needs for 2.
-
The Year is 2022 and the Standard is C++20; what is your preferred way to do Text I/O?
I had a user enum like enum class Color {Red, Green, Blue}; that I wanted to add serialization support for. Following the docs (https://scnlib.readthedocs.io/), after some tweaks I arrived at the following:
-
scnlib (scanf for modern C++) - version 1.0 released
Thanks for the comment, I made an issue tracking this: https://github.com/eliaskosunen/scnlib/issues/51
-
Modern C++ in Advent of Code
I am using some modern libraries: scnlib fmtlib Eigen and usually abuse lambdas :)
Catch
Posts with mentions or reviews of Catch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-05.
- C++ Comparison Operator Craziness
-
How can I check the execution time of a program rendered in SFML?
https://github.com/catchorg/Catch2 (for unit testing, need to do timing yourself)
- Semi crise existentielle de développeur
-
`DestroyJavaVM()` failing on OpenJ9?
```c++ // https://github.com/catchorg/Catch2/tree/Catch1.x // https://github.com/philsquared/Catch/releases/download/v1.12.2/catch.hpp
-
How do you use the Catch testing library?
Include(FetchContent) FetchContent_Declare(Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG v3.3.2 ) FetchContent_MakeAvailable(Catch2)
- Tracking the Fake GitHub Star Black Market
- The Little Things: Why you should always have benchmarks ready
-
Trying to add tests for my cmake for catch2 with ctest.
Another possible issue would be the include(Catch) in your root cmakelists.txt . To include Catch there it must be part of your module path. Otherwise you have to include the path to that catch2 cmake file. Here is that file in their repository - https://github.com/catchorg/Catch2/blob/devel/extras/Catch.cmake . I recon that CMake doesn't know about this file since you call find_package(Catch2 REQUIRED) later in your subdirectory
-
Seeking Improve Advice on my C++ Network Library
Unit test coverage by Catch2 framework.
- Catch2 added SKIP (and more built-in matchers)
What are some alternatives?
When comparing scnlib and Catch you can also consider the following projects:
C++ Format - A modern formatting library
Google Test - GoogleTest - Google Testing and Mocking Framework
gainput - Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
cpp-peglib - A single file C++ header-only PEG (Parsing Expression Grammars) library
Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
aoc2021 - Advent of Code 2021
CppUTest - CppUTest unit testing and mocking framework for C/C++
tinyformat - Minimal, type safe printf replacement library for C++
Google Mock
libflow
CppUnit - C++ port of JUnit