Brought line numbers back for the dbc.cpp logging stuff. May not work in clang because of the bug they have (had?).

This commit is contained in:
Zed A. Shaw 2025-03-17 23:16:51 -04:00
parent 0efb17371b
commit 5ed8196c80
3 changed files with 49 additions and 22 deletions

View file

@ -3,12 +3,15 @@
using namespace dbc;
TEST_CASE("basic feature tests", "[utils]") {
TEST_CASE("basic feature tests", "[dbc]") {
log("Logging a message.");
pre("confirm positive cases work", 1 == 1);
pre("confirm positive lambda", [&]{ return 1 == 1;});
post("confirm positive post", 1 == 1);
post("confirm postitive post with lamdba", [&]{ return 1 == 1;});
check(1 == 1, "one equals 1");