Skip to content

Commit 0047733

Browse files
author
thk123
committed
Adding pretty printer to main file
1 parent b5c55b3 commit 0047733

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

unit/unit_tests.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@
88

99
#define CATCH_CONFIG_MAIN
1010
#include "catch.hpp"
11+
#include <util/irep.h>
12+
13+
// Debug printer for irept
14+
std::ostream &operator<<(std::ostream &os, const irept &value)
15+
{
16+
os << value.pretty();
17+
return os;
18+
}

0 commit comments

Comments
 (0)