test/assert: Add line number to assertion failed message

BodgeMaster-unfinished
BodgeMaster 2022-08-13 17:04:55 +02:00
parent acc19ae100
commit 73ae58e522
1 changed files with 1 additions and 1 deletions

View File

@ -15,4 +15,4 @@
#include <iostream>
#define ASSERT(truth) if ((truth)); else { std::cout << "Assertion failed: " << #truth << std::endl; return 1; }
#define ASSERT(truth) if ((truth)); else { std::cout << "On line " << __LINE__ << ": Assertion failed: " << #truth << std::endl; return 1; }