38 using std::make_unique;
51 :
public sigc::trackable
53 X val = 1 + rand() % 100;
70 verify_standardUsage();
83 auto widget = make_unique<Wint>();
89 CHECK (r+23 == widget->val);
104 auto w1 = make_unique<Wint>();
105 auto w2 = make_unique<Wint>();
117 CHECK (w1->val == r1+1);
118 CHECK (isSameObject (*l1, *l2));
121 CHECK (not isSameObject (*l1, *l2));
123 CHECK (r1+1 == l1->val);
124 CHECK (r2 == l2->val);
133 CHECK (-10*r2 == w2->val);
136 CHECK (-10*r2 == l2->val);
137 CHECK (isSameObject (*l1, *l2));
138 CHECK (isSameObject (*l1, *w2));
152 auto w1 = make_unique<Wint>();
153 auto w2 = make_unique<Wint>();
162 CHECK (w1->val == l3->val);
168 CHECK (isSameObject (*l1, *l3));
171 CHECK (w2->val == l2->val);
174 CHECK (w1->val == l1->val);
177 CHECK (w1->val == l1->val);
178 CHECK (w1->val == l3->val);
181 CHECK (w1->val == l1->val);
182 CHECK (w1->val == l2->val);
183 CHECK (w2->val == l3->val);
188 CHECK (w2->val == l3->val);
191 auto uu = make_unique<Wuint>();
201 CHECK ((
int)uu->val == l1->val);
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Simple test class runner.
Lumiera GTK UI implementation root.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A collection of frequently used helper functions to support unit testing.
A smart link to an GTK widget with automatic disconnection.
void verify_standardUsage()
Managed link to a sigc::trackable UI widget, without taking ownership.
bool isSameObject(A const &a, B const &b)
compare plain object identity, bypassing any custom comparison operators.