test/assert: Add line number to assertion failed message
parent
acc19ae100
commit
73ae58e522
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue