7 #ifndef TEST_UTILITIES_H
8 #define TEST_UTILITIES_H
15 #ifndef DISPLAY_NEWLINE
17 #define DISPLAY(cmd) std::cout << " "; cmd // Note: Don't use inside a single-line if/for/while/etc as this expands into two lines of code
18 #define DISPLAY_NO_PAD(cmd) cmd
19 #define DISPLAY_NEWLINE std::cout << endl;
22 #define DISPLAY_NO_PAD(cmd)
23 #define DISPLAY_NEWLINE
28 namespace testutilities
71 std::string setFormat(Attr::Colour foreground = Attr::NONE, Attr::Colour background = Attr::NONE, Attr::Attribute attribute = Attr::NOATTR);
72 std::string setColour(Attr::Colour foreground = Attr::NONE, Attr::Colour background = Attr::NONE);
73 std::string setAttribute(Attr::Attribute attribute);
74 std::string resetColour();
75 std::string resetFormat();
84 FText(Attr::Colour foreground = Attr::NONE, Attr::Colour background = Attr::NONE, Attr::Attribute attribute = Attr::NOATTR)
86 std::cout << setFormat(foreground,background,attribute);
90 std::cout << resetFormat() << std::endl;
95 FText& operator<<(
const T &v)
100 FText& operator<<(std::ostream& (*pf)(std::ostream&))
105 FText& operator<<(std::ios& (*pf)(std::ios&))
110 FText& operator<<(std::ios_base& (*pf)(std::ios_base&))