HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chuckallison

18 karmajoined เดือนที่แล้ว

Submissions

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

freshsources.com
25 points·by chuckallison·10 วันที่ผ่านมา·4 comments

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

freshsources.com
2 points·by chuckallison·19 วันที่ผ่านมา·1 comments

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

freshsources.com
4 points·by chuckallison·26 วันที่ผ่านมา·1 comments

When The C/C++ Users Journal Disappeared

freshsources.com
9 points·by chuckallison·เดือนที่แล้ว·1 comments

comments

chuckallison
·10 วันที่ผ่านมา·discuss
[dead]
chuckallison
·19 วันที่ผ่านมา·discuss
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
·26 วันที่ผ่านมา·discuss
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
·เดือนที่แล้ว·discuss
[flagged]