29 using std::make_unique;
42 :
public sigc::trackable
44 X val = 1 +
rani(100);
62 verify_standardUsage();
75 auto widget = make_unique<Wint>();
81 CHECK (r+23 == widget->val);
96 auto w1 = make_unique<Wint>();
97 auto w2 = make_unique<Wint>();
109 CHECK (w1->val == r1+1);
110 CHECK (isSameObject (*l1, *l2));
113 CHECK (not isSameObject (*l1, *l2));
115 CHECK (r1+1 == l1->val);
116 CHECK (r2 == l2->val);
125 CHECK (-10*r2 == w2->val);
128 CHECK (-10*r2 == l2->val);
129 CHECK (isSameObject (*l1, *l2));
130 CHECK (isSameObject (*l1, *w2));
144 auto w1 = make_unique<Wint>();
145 auto w2 = make_unique<Wint>();
154 CHECK (w1->val == l3->val);
160 CHECK (isSameObject (*l1, *l3));
163 CHECK (w2->val == l2->val);
166 CHECK (w1->val == l1->val);
169 CHECK (w1->val == l1->val);
170 CHECK (w1->val == l3->val);
173 CHECK (w1->val == l1->val);
174 CHECK (w1->val == l2->val);
175 CHECK (w2->val == l3->val);
180 CHECK (w2->val == l3->val);
183 auto uu = make_unique<Wuint>();
193 CHECK ((
int)uu->val == l1->val);
int rani(uint bound=_iBOUND())
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Simplistic 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, based directly on the referee's memory identities. ...