initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
48
libs/wxWidgets-3.3.1/tests/asserthelper.cpp
Normal file
48
libs/wxWidgets-3.3.1/tests/asserthelper.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: tests/asserthelper.cpp
|
||||
// Purpose: Helper functions for cppunit
|
||||
// Author: Steven Lamerton
|
||||
// Created: 2010-07-23
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "testprec.h"
|
||||
|
||||
|
||||
#include "asserthelper.h"
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxColour& c)
|
||||
{
|
||||
os << c.GetAsString(wxC2S_HTML_SYNTAX);
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxSize& s)
|
||||
{
|
||||
os << s.x << "*" << s.y;
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxFont& f)
|
||||
{
|
||||
os << f.GetNativeFontInfoUserDesc();
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxPoint& p)
|
||||
{
|
||||
os << "(" << p.x << ", " << p.y << ")";
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxRect& r)
|
||||
{
|
||||
os << "{"
|
||||
<< r.x << ", " << r.y << " " << r.width << "*" << r.height
|
||||
<< "}";
|
||||
return os;
|
||||
}
|
||||
Reference in New Issue
Block a user