30 using namespace basis;
42 virtual int execute();
45 int test_geometric::execute()
58 "cartesian from_text test should not return failure");
60 "cartesian from_text test should compare with expected value");
64 "xingu screen test construction should agree with expectations");
66 "xingu screen from_text test should not return failure");
68 "xingu screen from_text test should compare with expected value");
72 "guinness screen test construction should agree with expectations");
74 "guinness screen from_text test should not return failure");
76 "screen from_text test should compare with expected value");
91 return final_report();
The application_shell is a base object for console programs.
Provides a dynamically resizable ASCII character string.
Provides a geometric rectangle that use double floating points numbers.
Represents a geometric circle.
Represents a geometric ellipse.
bool from_text(const basis::astring &text)
Returns true if the "text" is parsed into this rectangle.
a simple class used to describe points on a graphics screen.
Represents a rectangle as interpreted on display screens.
Represents a geometric triangle.
#define DEFINE_CLASS_NAME(objname)
Defines the name of a class by providing a couple standard methods.
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Provides macros that implement the 'main' program of an application.
Implements an application lock to ensure only one is running at once.
The guards collection helps in testing preconditions and reporting errors.
Contains all of our objects for geometry and avoids name clashes.
A logger that sends to the console screen using the standard output device.
A dynamic container class that holds any kind of object via pointers.
Useful support functions for unit testing, especially within hoople.
HOOPLE_MAIN(test_geometric,)
#define ASSERT_TRUE(a, test_name)
#define ASSERT_FALSE(a, test_name)