HackerTrans
トップ新着トレンドコメント過去質問紹介求人

chuckallison

18 カルマ登録 先月

投稿

Modernizing a 25-year-old minimal C++ unit testing framework (Part 2)

freshsources.com
25 ポイント·投稿者 chuckallison·10 日前·4 コメント

How Small Can a C++ Unit Test Framework Be?

freshsources.com
2 ポイント·投稿者 chuckallison·19 日前·1 コメント

Function Composition from C++17 to C++23

freshsources.com
4 ポイント·投稿者 chuckallison·25 日前·1 コメント

When The C/C++ Users Journal Disappeared

freshsources.com
9 ポイント·投稿者 chuckallison·先月·1 コメント

コメント

chuckallison
·10 日前·議論
[dead]
chuckallison
·19 日前·議論
Back in the late 1990s and early 2000s, JUnit and CppUnit were gaining popularity, but I wanted something my beginning C++ students could understand immediately.

This article explores how little code is actually required to build a useful unit-testing framework: expression stringizing, source-location reporting, exception testing, and a simple test driver in a single header file.

The implementation predates C++17, which leads to some interesting discussion about anonymous namespaces, inline variables, and how I would approach the design today.
chuckallison
·25 日前·議論
To illustrate how C++ has evolved over that last decade or so I took a function composition example written C++17 and took it through C++20 and C++23 versions. Illustrates ranges, modules and functional programming in a small, self-contained example.
chuckallison
·先月·議論
[flagged]